List used domains

{%- for d in states | groupby('domain') %} {% if loop.first %}{{loop.length}} Domains: {% endif %}- {{ d[0] }}: {{d[0]|count}} {%- endfor %}

Comments