I am new to ASP.NET Core development. I am looking for something like a built-in way to use loop iteration numbers inside the view of ASP.NET Core.

I did some research and found solutions like creating int variable outside the loop and then increment inside the loop.

I want to index each user.

Here is my code:

```
@foreach (var item in l_IEnumerableModUserQuery)
{
    <tr>
        <td> 
            <!-- Here I want to add Iteration No. here--> 
        </td>
        <td>
            <a href="#">
                @item.Pr_FullName
            </a>
        </td>
        <td>@item.Pr_Email</td>
        <td>@item.Pr_ContactNo</td>
    </tr>
}

```