Keep track of how many times a function has been run

Create a global variable and increment it every time the function starts running?