Create a QueryCounter class for specs