that logs to the console the numbers from 1 to a given number
, and also logs the value of a variable
that keeps track of the number of times the function has been called. The variable
should only be accessible inside the
function and should be initialized to 0 every time the function is called.