Create a function that returns how often it has been called previously (i.e. return the count value pre-increment).
counter() ➞ 0 counter() ➞ 1 counter() ➞ 2 counter() ➞ 3
A global variable is needed for this task.