Keep track of how many times a function has been run

@anon35827816 How did your FSM turn out in Excel? (Just curious to see if there's a better way of making one besides using a 2D flow chart)