Status: IN
`countMatches` maps string keys to positional indices via a dictionary literal (`{"type": 0, "color": 1, "name": 2}[ruleKey]`) rather than an if/elif chain — a pattern worth checking for reuse in other key-to-index solutions.
Source: entries/2026/06/06/count-items-matching-a-rule-solution.md