i was trying to make a countdown loop.

It counts down and when it gets to a certain number it moves to the next frame. How do i do this with the actions only on the one frame?