Measure the number of triggered events

Resolves #440