store number of programmed bytes to eeprom