Got time sync working.
Count pulses.