Keep track of how many times a function has been run

That'll go out of scope as soon as the function ends. I suspect @midnightsparks is looking for something that will 'remember' the count even if the function is called and exits several times.

1 Like