code: protected int integer(String functionCall, String condition, Object... args) throws DAOException{
          if(condition==null)
              condition = "";
  
          return jdbc.selectFirst("SELECT "+functionCall+" FROM "+table.name+' '+condition, new RowMapper<Integer>(){
              @Override
              public Integer newRecord(ResultSet rs) throws SQLException{
                  return rs.getInt(1);
              }
          }, args);
      }
docs: /*-------------------------------------------------[ Count ]---------------------------------------------------