public static function count_records_select($select, $params = null) {
        global $DB;

        $count = $DB->count_records_select(static::TABLE, $select, $params);
        return $count;
    }
public static function count_records_select($select, $params = null) {
        global $DB;

        $count = $DB->count_records_select(static::TABLE, $select, $params);
        return $count;
    }
public static function count_records_select ( $ select , $ params = null ) { global $ DB ; $ count = $ DB -> count_records_select ( static :: TABLE , $ select , $ params ) ; return $ count ; }
Count a list of records.

@param string $select
@param array $params
@return int
Count a list of records .