How to Save Value from Counter to EEPROM in Arduino Uno [solved]

Don't try to write it all at once.

Write one program that puts a fixed int value into a known EEPROM location in the setup() function.

Write a second program that gets the int value from the same EEPROM location in setup() and prints its value to the Serial monitor.

Note the use of put() and get() rather than write() and read()

There are examples of both included with the EEPROM library.