A metro object, once banged, sends bangs at the period of either argument, or second inlet, as in the example here.
Similar to the counter example, a float (f) stores a number and increments whenever it receives a bang, due to it’s two connections with + 1 object, in a feedback loop.
The vertical slider changes the period (in millisecond). The height was changed in properties and the range was changed from 250 to 1000.
We also calculate the Frequency. Anytime, we can reset the count by clicking on the 0 message.