Global counter

Does anyone know how to create and increment a counter.

It has to increment when a condition is true in numerous different MCs

Where should the variable be created?

Any Ideas