Adds a counter using HTML5 localStorage.
Fixes the horizontal line for the counter.