code: public Search counts(String[] countsfields) {
          assert (countsfields.length > 0);
          JsonArray countsJsonArray = new JsonArray();
          for(String countsfield : countsfields) {
              JsonPrimitive element = new JsonPrimitive(countsfield);
              countsJsonArray.add(element);
          }
          databaseHelper.query("counts", countsJsonArray);
          return this;
      }
docs: Array of fieldNames for which counts should be produced
  
  @param countsfields array of the field names
  @return this for additional parameter setting or to query