Adds a simple way to count queries over a piece of code