write the global data count into the first byte of EEPROM