public function count($hookName) : int
    {
        $hookName = $this->sanitizeKeyName($hookName);
        if (!$hookName || ! isset($this->filters[$hookName])) {
            return 0;
        }
        return count($this->filters[$hookName]);
    }