How Can I Get The Count Function In A Condition Where In Sql