Overview
Stores a numeric counter value and exposes bounded update handlers. All updates are clamped to the configuredmin and max values.
Import
Signature
Parameters
Initial counter value
Return Value
A tuple containing the current count and handler functions
Current counter value
Object containing handler functions
Increments the counter by 1 (clamped to max)
Decrements the counter by 1 (clamped to min)
Sets the counter to a specific value (clamped to min/max)
Resets the counter to the initial value