Typically instead of counting down (which requires changing the
counter over time), I prefer to schedule things ahead. So instead of
a counter, I store a timeout value when I want something to happen
(like current time + 365 sec) and then compare that to the current
time periodically and do what I need to when current time >= timeout.