Hi Douglas,
To count the loop iterations in your test, I created the counter keyword test variable. The type of the variable is Integer, the default value is 0. Then, I added the Run Code Snippet operation to the data driven loop. This operation contains the code that increments the value of the counter variable each time the loop executes:
KeywordTests["Test3"]["Variables"]["counter"] = KeywordTests["Test3"]["Variables"]["counter"] + 1
Since I have created the keyword test variable as a counter, this variable is available only from this test. However, you can create a project suite or project variable as a counter variable, and this variable will be available for all your tests in your project suite or project correspondingly. So, you can use the same variable in several tests.