Deep sleep (advanced mode)

In the simple mode of deep sleep (see here). I said that we can't carry over values from before the sleep. This is not quite true. It is possible to remember one value that we could use to remember how many times since starting or a hard reset the ESP8266 has been to sleep. This value could be used to provide a serial number to go with a sensor reading for example.