Add query to Counter