Jfugdiqdnqlkdnqlwkdn

Do you mean a circuit or a program ?

When you say 1s, do you mean that you want to count the number of EEPROM addresses that contain the value 1 or do you want to count the number of bits in the EEPROM are set to1 ?