How would I add a counter to this in JavaScript

Printable View