count and send pulses simultaneously

have a look at the tc_lib library for the Due