Test cases for count()