The var keyword can be used to create a variable inside of a function. Here, we have a main() function with a count variable, which we are initializing to 5. We can then reference the variable in things like the println() call.

You can learn more about this in:
Run Edit