✅C++ easy solution!
If you\u2019re interested in coding you can join my Discord Server, link in the comment section. Also if you find any mistakes please let me know. Thank you!\u2
> **If you\u2019re interested in coding you can join my Discord Server, link in the comment section. Also if you find any mistakes please let me know. Thank you!\u2764\uFE0F**\n> \n\n---\n## Code:\n```\nclass Solution {\npublic:\n    int countMatches(vector<vector<string>>& items, string ruleKey, string ruleValue) {\n        int count=0;\n        int n = items.size();\n        if(ruleKey == "type")\n        {\n            for(int i=0; i<n; i++){\n                if(items[i][0]==ruleValue)\n                    count++;\n            }\n        }\n        if(ruleKey == "color")\n        {\n            for(int i=0; i<n; i++){\n                if(items[i][1]==ruleValue)\n                    count++;\n            }\n        }\n        if(ruleKey == "name")\n        {\n            for(int i=0; i<n; i++){\n                if(items[i][2]==ruleValue)\n                    count++;\n            }\n        }\n        return count;\n    }\n};\n```\n---\n***Please upvote if it was helpful for you, thank you!***
['C', 'C++']