multiple sessions count repeat loop times

Hi guys,

Could you please help, I am new to gutting and Scala. I have a repeat loop and run my scenario for 8 virtual users(sessions). Each session has its own counter in the repeat loop, but I need to cum all 8 counters and make do if the amount ==200. Is there out of box solution to have static variable that will be the same for all sessions or may be there is another way to achieve this?

My current code:

val myGlobalVarCounter = new java.util.concurrent.atomic.AtomicInteger(0)

Forgeto to add

Gatling 2.2.0