Python3 simple solution
\nclass Solution:\n    def countMatches(self, items: List[List[str]], ruleKey: str, ruleValue: str) -> int:\n        count = 0\n        a = ["type", "color", "n
```\nclass Solution:\n    def countMatches(self, items: List[List[str]], ruleKey: str, ruleValue: str) -> int:\n        count = 0\n        a = ["type", "color", "name"]\n        x = a.index(ruleKey)\n        for i in range(len(items)):\n            if ruleValue == items[i][x]:\n                count += 1\n        return count\n```\n**If you like this solution, please upvote for this**
['Python3']