Python 3 line solution (%99.84 fast)
\nclass Solution:\n    def countMatches(self, items: List[List[str]], ruleKey: str, ruleValue: str) -> int:\n        ruleIndex = ["type", "color", "name"].index
```\nclass Solution:\n    def countMatches(self, items: List[List[str]], ruleKey: str, ruleValue: str) -> int:\n        ruleIndex = ["type", "color", "name"].index(ruleKey)\n        reqList = [item[ruleIndex] for item in items]\n        return reqList.count(ruleValue)\n```
[]