Check if current row is second last row of DataTable

Hi, I’m using a For Each Row activity to iterate through a DataTable, what’s a good way to check if the current row is the second last row?

before for each calculate the rows count by using
Datatable.Rows.count
assign count=1
in for each row
If count=RowsCount-1
i.e. second last row