problem whit counter

Filoo's icon
Max Patch
Copy patch and select New From Clipboard in Max.

Good evening, I have a little problem with the counter, maybe I'm too wrong methodology.
I wish that when activated the "toggle", the image shows its five levels, stops at last frame (the fifth), and when I turn off the "toggle" makes the reverse journey, from five to zero

I hope I was clear, thanks

MIB's icon
Max Patch
Copy patch and select New From Clipboard in Max.

not the most graceful solution, but should do the trick: