Added QueryCounter helper class for specs.
Merge pull request #212 from Fryguy/add_query_count_helper

Added QueryCounter helper class for specs.