Longer delay to check for button press, reset state when done.
Add button count sketch and updated schematic