   """
   @spec underline_nav_item(String.t(), String.t(), Keyword.t()) :: Phoenix.HTML.safe()
   def underline_nav_item(text, link, options \\ []) do
+    count = options[:counter]
     selected = options[:selected]
 
     class =

  defp append_class(base, nil), do: base
  defp append_class(base, ""), do: base
  defp append_class(base, class) when is_binary(class), do: base <> " " <> class
end

      |> Keyword.drop([:counter, :selected])
      |> Keyword.put(:class, class)

    tag_options = if !selected, do: Keyword.put(tag_options, :href, link), else: tag_options
    content = if count, do: [text, counter(count)], else: text

    content_tag(:a, content, tag_options)
  end
