Count does indeed work in the given example, but assuming that the field id is a primary key, there can be 0 or 1 rows with id=5, and if there is a row where id = 5, there can be 0 or 1 rows with id=5 and approved=YES.
However, when you write approved=YES, you most likely mean approved='YES'