simple counter (ring + text)

examples uses closures in JavaScript