public function count(string $identifier = ''): int
    {
        if ($identifier) {
            return $this->countItems($identifier);
        }

        $menus   = $this->all();
        $counter = 0;

        foreach ($menus as $identifier => $menu) {
            $counter += $this->countItems($identifier);
        }

        return $counter;
    }