Adding query counter helper
Adding docs on query counter.