Keep track of how many times a function has been run

Well, it could have been declared static, which is what I do in recursive functions to test the depth of calls.