title: Calculate the number of elements in a foreach statement
body: <pre><code>@foreach (var type in Model.GetPeople())
  {
      var peopleGroup1 = persons.First();
      var category = new category { Id = person.CategoryId,;
  
      etc...
  }
  </code></pre>
  
  <p>How do I count the number of 'types' in the foreach statement? </p>