[Python] Easy Solution
\nclass Solution:\n    def countMatches(self, items: List[List[str]], ruleKey: str, ruleValue: str) -> int:\n        dct = {"type": 0, "color": 1, "name": 2}\n 
```\nclass Solution:\n    def countMatches(self, items: List[List[str]], ruleKey: str, ruleValue: str) -> int:\n        dct = {"type": 0, "color": 1, "name": 2}\n        key = dct[ruleKey]\n        res = 0\n        for item in items:\n            if item[key] == ruleValue:\n                res += 1\n        return res\n```
[]