Making a script run on on a set of frames

Is it possible to make some code run on certain frames in a script? Thanks

if your using scripts in the Game Engine, they Automatically updated every frame. if you want to put a timer of sort and went that time hit the script . it would be similar to something like this.


import GameEngine 
cont = GameLogic.getCurrentController()
own = cont.getOwner()

own.YourTimer = 10

if own.YourTimer ==  0:
       YourScriptFuntion():


Class YourScriptFunction ();
# you script goes here


theres probably a few error as my python a bit rusty