simple counter (ring + text)

example uses closures in JavaScript