# Drawstep engine · Values · `counterKinds` > Counter kinds — CR 122.1: number of different kinds of counter on the permanents matching filter (default: permanents you control); "for each kind of counter among permanents you control". Engine: Magic: The Gathering (`mtg`). This is one primitive of the Drawstep card vocabulary; field names and the discriminator are exact. Wiki page: https://drawstep.xyz/wiki/mtg/values#counterKinds ## Where it goes A number: `{ "kind": "counterKinds", … }` wherever a ValueDef is accepted (`amount`, `power`, `max`, `count` …); a plain integer is also a ValueDef. ## Fields | Field | Type | Required | Description | |---|---|---|---| | `filter` | `ObjectFilter` | no | Which objects (ObjectFilter; set fields AND together) | ## Minimal form ```json {"kind":"counterKinds"} ``` The engine reads that minimal form as: “the number of kinds of counter among permanents you control”. ## Stock examples - **Storm of Forms** — “Return target nonland permanent to its owner's hand.” ```json {"kind":"counterKinds"} ``` ## Related - [Values](https://drawstep.xyz/wiki/mtg/values.md) — the whole topic - [Filters & targets](https://drawstep.xyz/wiki/mtg/targets.md) — how `target` / `filter` select objects and players (selection algebra) - [Start here](https://drawstep.xyz/wiki/mtg/start.md) — the rules, the output contract and the index of every primitive