The following counter gets updated roughly every second via setInterval(fn, 1000):
setInterval(fn, 1000)