Closure: make a counter

Build a function that returns another function. Each call to the returned function should increment and return a counter that lives inside the outer function.
JavaScript
Console