add onCount event

Create onCount event to respond to the increment/decrement of the counter, regardless of safe/max/over status.