Counter working but then breaks after a minute

NVM you fixed it