Javascript: button onclick function which will increase the HTML output number per click

Want to create a small application which have the function of counter and alarm. So there is two button, -1 and +1. When click the button, the number will continuesly change according to the time you click. So if click -1 button once, it will shows 0-1, if click -1 again, it will shows 0-2. Button

I try to use localstorage command to record each time when the button is clicked. I wondered is there other easier way to solve it.