using a stepping counter in synchronism with the welding pulses