JavaScript Function Closures
Counting with a local variable.