I have a test that loops as suggested here: Is it possible to loop a test in JMeter?
I have a Thread Group with 100 users and a loop count of 5. A Runtime Controller to run for 30 seconds.
Now when the Runtime Controller finishes I would like to increment a variable that I can read inside my BeanShell sampler in my test. At the end of the test this variable should be equal to the loop count.