You could put a script event on a scene director and put a loop event on that scene director. The script would simply add 1 to the counter, and the loop event could be moved to the correct place on the scene director such that it increments at the right frequency.
You could start that scene director playing using either visual logic, or a script on the scene itself.
#XPression