{% regroup valuate_status|dictsort:"choice.value" by choice as choices %} {% for choice in choices %} {{ choice.list|length }} {{ choice.grouper }}{{ choice.list|length|pluralize }} {% endfor %}