Store variable in PROGMEM -- survive resets?

Like AWOL said, use EEPROM for storing data to survive power loss.

It does have a million read/write cycle limit (at least) but that would not normally cause a problem.

Mowcius