$ 0 0 I'd suggest looking at noise gate algorithms, as you could then count the number of times the gate opens and shuts