Thanks for that catch, Dave. I fixed it by writing both CIN.Byte0 and CIN.Byte1 into EEPROM, but both addresses have zeros in them after running the program, so COUNT is still not counting pulses into the CIN variable.

I will post my code in another reply, including declaratons as suggested to see if any of you can see my problem.