check out .../doc/2.control.examples/05.counter.pd the [counter] object kinda sux, that's why barely anyone uses it.