# Drawstep engine · Values · `affectedCount` > Affected count — CR 608.2h: number of objects in the preceding selection of this resolution ("for each creature chosen this way"). 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#affectedCount ## Where it goes A number: `{ "kind": "affectedCount", … }` wherever a ValueDef is accepted (`amount`, `power`, `max`, `count` …); a plain integer is also a ValueDef. ## Fields | Field | Type | Required | Description | |---|---|---|---| | `noun` | `string` | no | Which kind of object the cost paid with is read | ## Minimal form ```json {"kind":"affectedCount"} ``` The engine reads that minimal form as: “the number of objects chosen this way”. ## Stock examples - **Dream Tides** — “At the beginning of each player's upkeep, that player may choose any number of tapped nongreen creatures they control and pay {2} for each creature chosen this way. If the player does, untap those creatures.” ```json {"kind":"affectedCount","noun":"creature"} ``` ## Related - [Values](https://drawstep.xyz/wiki/mtg/values.md) — the whole topic - [Start here](https://drawstep.xyz/wiki/mtg/start.md) — the rules, the output contract and the index of every primitive