remove sql statements from tests and implement count method in ShelterDog