Example of a counter implemented with closures:
This counter is implemented in Ruchy and compiled to WebAssembly.