The counter for the trigger is useful if you do not want to execute a command just when the threshold value was reached or exceeded once but you want to make sure the threshold value is reached/exceeded some 'n' times in a row. Currently, the audio data is picked up with a frequency of 25 Hz, so if you want to trigger a command when the threshold was exceeded for one second you'd have to set the count to 25.