The system is working, except the counter is resetting itself each time the system is loaded