Implement a function with a "static variable" (for example, a call counter) without writing any code outside the function.

Technical