code: public static Long count(String table, String query, Object... params) {
          return new DB(DB.DEFAULT_NAME).count(table, query, params);
      }
docs: Runs a count query, returns a number of matching records.
  
  @param table table in which to count rows.
  @param query this is a filtering query for the count. If '*' provided, all records will be counted. Example:
  <code>"age > 65 AND department = 'accounting'"</code>
  @param params parameters for placeholder substitution.
  @return copunt number of records found in a table.