I'm trying to count the number of times a stage has ran by using the $main.S3 signal to increment a counter. However it doesn't work. I tried using a control relay driven by the $main.S3 signal it doesn't work either. However, if I force then un-force the control relay it works just fine. Attached is a print screen showing the logic.