{% load comments %} {% get_comment_count for comment_object as comment_count %} {% if comment_count > 0 %} ({{ comment_count }} comments) {% else %} (Comment) {% endif %}