You could create a row counter data item e.g. running-total([Data Item]) which gives you a number för each row.
You can also create a layout calculation using the RowNumber() function.
You can also create a layout calculation using the RowNumber() function.