title: Serial Number (Record Count) in Razor?
body: <p>Could some one point out how to include a <strong>Serial Number</strong> while populating from a table on a Razor page view.</p>
  
  <p>Here's my view</p>
  
  <pre><code>@foreach (var item in Model) {
      &lt;tr&gt;
          &lt;td&gt;
              ---- ??? HOW TO INCLUDE SERIAL NUMBER HERE ??? ----
          &lt;/td&gt;
          &lt;td&gt;
              @Html.DisplayFor(modelItem =&gt; item.studentName)
          &lt;/td&gt;
          &lt;td&gt;
              @Html.ActionLink("Edit", "Edit", new { id = item.studentID }) |
              @Html.ActionLink("Details", "Details", new { id = item.studentID }) |
              @Html.ActionLink("Delete", "Delete", new { id = item.studentID })
          &lt;/td&gt;
      &lt;/tr&gt;
  </code></pre>
  
  <p>}</p>
  
  <p><em>(Im using EF 4.1 scaffolding to autogenerate the contexts and models)</em></p>