add query counter helper to rspec