public function count($hookName)
    {
        $hookName = $this->sanitize($hookName);
        if (!$hookName || !isset($this->filters[$hookName])) {
            return false;
        }
        return count((array) $this->filters[$hookName]);
    }