lastchancename:
Keep in mind that EEPROM has a finite number of write cycles.
One method to avoid using them up too quickly - is to look at the power supply, and if it is going down, save the value to EEPROM... otherwise keep your live counter in RAM, and reload it from the saved value next run - during setup()
i understand what you saying but im suck at programming, im still trying to get to know the programming code. i just learn it so it will takes time