public static function getParameterCount($pageclass) {
        if(is_object($pageclass)) {
            $pageclass = get_class($pageclass);
        }
        $count = array_count_values(explode("\\", $pageclass));
        return array_key_exists("_", $count) ? $count["_"] : 0;
    }