title: count number of rows in flask templates
body: <p>i have send a variable from my views to templates which consist of the data from database</p>
  
  <p>this is what i am using in my template</p>
  
  <pre><code>{% for i in data %}             
      &lt;tr&gt;
          &lt;td&gt;{{i.id}}&lt;/td&gt;
          &lt;td&gt;{{i.first_name}}&lt;/td&gt;
          &lt;td&gt;{{i.last_name}}&lt;/td&gt;
          &lt;td&gt;{{i.email}}&lt;/td&gt;
      &lt;/tr&gt;
  {% endfor %}
  </code></pre>
  
  <p>there are seven entries in this loop , i need to show count lease suggest how can i do this</p>