Trigger action whenever global counter reaches a threshold
Right now we just increment the global counter, but that's all.
The goal is to yield once the counter reaches a certain threshold; in an initial step, we can test the functionality by having the pass just insert a printf
or something whenever that happens.