title: Smarty loop count
body: <p>I am new to smarty concepts. I have used section loop in my tpl page to show the user data, in this page i need the section count.</p>
  
  <p>For example:</p>
  
  <pre><code>{section name=i loop=$getFriends start=0 step=1}
  
  {/section}
  </code></pre>
  
  <p>I need to check the  section count for the array values($getFriends) to display some messages for the users. so please guide me on how to make the section count.</p>