I have a counter that shuts off a relay . Whenever I send 110vac through the relay the counter malfunctions. There are 2 transistors and 2 schmitt triggers between the counter and the relay. I have a diode across the coil of the relay so I don't understand why it does this. If there is no 110vac going through the relay the counter works perfectly.Why does the 110 affect the counter and how do I fix it?