Keeping data from a timer interrupt after a reset

RAM will survive a reset, but you must explicitly exclude the area you don't want to be zeroed when crt0 runs after the reset.

Google "AVR noinit"