Add support for count queries

Addresses issue #53
Implement code review comments for countWhere pull request #54
Merge pull request #54 from jeremymailen/feature/countWhere

Add support for count queries