State: OFF
Instead of counting, you track a true/false state and render the UI based on it.
Open the code and try the variant ideas listed in comments near the bottom.