code: public void addCounter(String field, Class<? extends Execution> cls) {
          counters.put(field, cls);
      }
docs: Adds a query for counts on a specified field.
  @param field the field to count matches on
  @param cls the class of the query that performs the count