title: Angular2 ngFor how to count the number of looping values?
body: <p>I am using ngFor to loop 8 json objects and I want not only to loop the values but also I want to count the number of looping values and display the number.</p>
  
  <p>For example,
  if json value is </p>
  
  <pre><code>Content:{
  0:"Content1",
  1:"Content2",
  2:"Content3",
  3:"Content4",
  4:"Content5",
  5:"Content6",
  6:"Content7",
  7:"Content8"
  }
  </code></pre>
  
  <p>I not only want to display looping values of 'Content', but I also want to count them so that the result could be this below.</p>
  
  <pre><code>1 &lt;- counting
  Content1
  
  2
  Content2
  
  3
  Content3
  
  4
  Content4
  
  5
  Content5
  
  6
  Content6
  
  7
  Content7
  
  8
  Content8
  </code></pre>