Getting code to get EEPROM number

Snippets R Us

And you do know the life of EEPROM is limited? You can only write is 100.000 (100k) times. If you write every second you can write for a little over 1 day and then your done.