src/Hook.php
public function count($hookName) : int
    {
        $hookName = $this->sanitizeKeyName($hookName);
        if (!$hookName || ! isset($this->filters[$hookName])) {
            return 0;
        }
        return count($this->filters[$hookName]);
    }
public function count($hookName) : int
    {
        $hookName = $this->sanitizeKeyName($hookName);
        if (!$hookName || ! isset($this->filters[$hookName])) {
            return 0;
        }
        return count($this->filters[$hookName]);
    }
public function count ( $ hookName ) : int { $ hookName = $ this -> sanitizeKeyName ( $ hookName ) ; if ( ! $ hookName || ! isset ( $ this -> filters [ $ hookName ] ) ) { return 0 ; } return count ( $ this -> filters [ $ hookName ] ) ; }
Count all existences Hook

@param string $hookName Hook name

@return integer          Hooks Count
Count all existences Hook