Programming help newb counter

is there a way to return to initial 10000 making the program start over again after a specific button is pressed? Simulating a weapon system being reloaded and ready to fire again.

Or a timer will be best for this application?