Discrete- or continuous-time counter
Simscape / Electrical / Control / General Control / Function Blocks
The Counter block implements an incremental counter in either discrete or continuous time. The counter increments in response to one of these criteria:
Up — The input goes up.
Down — The input goes down.
Up-Down — The input goes up or down.