Building Electronic Eye Dropper - need help with EEPROM functionality

Always use code tags, so that it looks like this:

if (dispenseCount != 0) {

which, incidentally, will never be true, so the code inside the brackets is never executed.

POST YOUR ORIGINAL PROGRAM, not a nonfunctional simplification.