Give Counter the ability to restore

Please provide a “restore” option for counters that will cause it to be initialized with its last value after a reboot.