add simple counter, implemented by localStorage