how to saving flow water meter reading into EEPROM

thanks for your time
I think in briefly my problem in save last value counter that passed from water flow sensor