# Drawstep engine · Values · `countersAmong` > Counters among — CR 122.1: the number of counters on the permanents matching filter (default: permanents you control) — of one kind when counter is given, else of every kind; "if there are thirty or more counters among artifacts and creatures 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#countersAmong ## Where it goes A number: `{ "kind": "countersAmong", … }` 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) | | `counter` | `string` | no | Counter kind (any string: "+1/+1", "loyalty", "time", "oil" …) | ## Minimal form ```json {"kind":"countersAmong"} ``` The engine reads that minimal form as: “the number of counters among permanents you control”. ## Stock examples - **Lux Artillery** — “At the beginning of your end step, if there are thirty or more counters among artifacts and creatures you control, this artifact deals 10 damage to each opponent.” ```json {"kind":"countersAmong","filter":{"anyTypes":["Artifact","Creature"],"controller":"you"}} ``` ## 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