increment a variable every frame

Hi,
I need a counter that i can start and stop at will. I tried creating an execute DAT and placing this code in it:
rvar spinCount = $spinCount + 1

This works, but my frame rate drops from 60 to 20. Clearly, this is not the best way of accomplishing this. Any suggestions?
Thanks,
Michael

I think the Count CHOP would do what you want

Ah, thanks. I didn’t know about the “While On” attribute