public static function count_total_users() {
        global $DB, $CFG;
        static $cached = null;
        if ($cached === null) {
            $cached = $DB->count_records_select('user', 'deleted = 0 AND id <> ?', [$CFG->siteguest]);
        }
        return $cached;
    }
public static function count_total_users() {
        global $DB, $CFG;
        static $cached = null;
        if ($cached === null) {
            $cached = $DB->count_records_select('user', 'deleted = 0 AND id <> ?', [$CFG->siteguest]);
        }
        return $cached;
    }
public static function count_total_users ( ) { global $ DB , $ CFG ; static $ cached = null ; if ( $ cached === null ) { $ cached = $ DB -> count_records_select ( 'user' , 'deleted = 0 AND id <> ?' , [ $ CFG -> siteguest ] ) ; } return $ cached ; }
Returns total number of users who are expected to accept site policy

@return int|null
Returns total number of users who are expected to accept site policy