Hi ampe,
You can consider the "Count Digital Events" shipping example in LabVIEW to count the rising or falling edges of a digital pulse. You can find the example:
Help >> Find Examples
In the "Browse" tab, go to Hardware Input and Output >> DAQmx >> Counter Measurmenets >> Count Digital Events
Thanks,
Lesley Y.