Simple javascript counter. The .getElementById("id") refers to the css id of the target element.