Counting bangs in a sequence (toggle switch)

G S's icon

Hi there

I've made this simple sequencer I use quite a bit but want to be able to count the toggles it turns shortly after I press the random button . Can't get my head around this but guess its probably quite simple. Tried a few attempts with no joy...

Here's a patch to show you...

Many thanks!

Max Patch
Copy patch and select New From Clipboard in Max.

Rick's icon
Max Patch
Copy patch and select New From Clipboard in Max.
G S's icon

Thanks very much Rick!