You’ve written this counter a hundred times. Click +1, it shows 1. But the function that shows it is called again from scratch every render. So where was the 1 between calls? Step through it and find out.
nothing yet: the function hasn’t run
Step through the first render. Where is count kept?