{% for c in entry.comment_set.all %} {% if forloop.last %} {{ forloop.counter }} {% endif %} {% endfor %}