Try this way.
Use For Each Row in DataTable
activity.- Declare Output/Index variable which will hold row index it’s iterating starting with zero.
- Use assign activity inside loop to assign row number. Add 1 to index value as index is starting at 0.
Thanks,
Ashok