code: public Long getCount() {
          if (count == 0L || !suppressCounts) {
                  count = Convert.toLong(new DB(dbName).firstCell(countQuery, params));
              return count;
          } else {
              return count;
          }
      }
docs: Returns total count of records based on provided criteria.
  
  @return total count of records based on provided criteria