title: Counting items in Django templates
body: <p>Is it possible to tally items being listed as part of the <code>django</code> template within the html?</p>
  
  <p>For example, I have a <code>django</code> template with the following code snippet in it:</p>
  
  <pre><code>&lt;div&gt;
     {% for thing in thing_list %}
        {% if thing.status == "n" %}
           &lt;a&gt;{{ thing.status.count }}&lt;/a&gt;
        {% endif %}
     {% endfor %}
  &lt;/div&gt;
  </code></pre>
  
  <p>This <code>django</code> template displays all of the things in a list, and I can call each attribute of the thing and display it, so I know I have access to all of the fields.</p>
  
  <p>I want to count then number of "things" and display that number as text. My current attempt above isn't working. Does anyone have any suggestions?</p>