Flash memory is nonvolatile (it does not need a trickle of power to maintain state). If it were, SD/uSD/SSD/NVME memory would be wiped the second they were disconnected from a device and every device would lose its firmware when it lost power.
Or is the point that the counter only counts time when the device is on? Kinda of like anacron vs cron