Debounce for snap counter

Is there a way to add a debounce to a snap pac i/o counter (the module’s built-in counter function)?