code: public long countOf(String countOfQuery) throws SQLException {
  		String countOfQuerySave = this.countOfQuery;
  		try {
  			setCountOf(countOfQuery);
  			return dao.countOf(prepare());
  		} finally {
  			setCountOf(countOfQuerySave);
  		}
  	}
docs: Returns the count of the number of rows that match a field so you can do
  {@code qb.countOf("DISTINCT(fieldname)")}. This uses {@link #setCountOf(String)} and then calls
  {@link Dao#countOf(PreparedQuery)}. It restores the previous count-of value before returning.