{% spaceless %} {% load catalogue_tags %}
{% for initial, object_list in names %} {% if initial %}

{{ initial }}

{% endif %} {% for item in object_list %}

{{ item }}{% if item.count %} ({{ item.count}}){% endif %}

{% endfor %} {% endfor %}
{% endspaceless %}