The Counter That Forgets

Python FundamentalsMedium+10 XP+10

The Counter That Forgets

A café tries to count visits with this function:

What number does it print?

Enter a whole number.

Hints

Solve it to unlock the solution

Once you get it right, the reasoning behind the answer shows up here.