code: public static Long count(String query, Object... params) {
          return ModelDelegate.count(modelClass(), query, params);
      }
docs: Returns count of records in table under a condition.
  
  @param query query to select records to count.
  @param params parameters (if any) for the query.
  @return count of records in table under a condition.