Hello,
I found a couple community examples that will walk you through how to reset your counter in different ways.
The first link below is a walkthrough tells you how to reset a counter when you have a file I/O and need to reset after a certain amount of time.
https://decibel.ni.com/content/docs/DOC-5411
The second link below is how to count digital events with the added feature of resetting the counter using a boolean control.
https://decibel.ni.com/content/docs/DOC-6576
The last link uses a property node to reset the counter.
https://decibel.ni.com/content/docs/DOC-26249
I am not sure what your full program is, but hopefully one of the examples can lead you in the right direction.
Hope this helps!
Karen M
Applications Engineer
National Instruments