C++ Easy Solution
\nclass Solution {\npublic:\n    int countMatches(vector<vector<string>>& v, string ruleKey, string ruleValue) {\n        int cnt=0;\n        for(int i=0;i<v.si
```\nclass Solution {\npublic:\n    int countMatches(vector<vector<string>>& v, string ruleKey, string ruleValue) {\n        int cnt=0;\n        for(int i=0;i<v.size();i++)\n        {\n            if(ruleKey=="type" && v[i][0]==ruleValue)\n                cnt++;\n            if(ruleKey=="color" && v[i][1]==ruleValue)\n                cnt++;\n            if(ruleKey=="name" && v[i][2]==ruleValue)\n                cnt++;\n        }\n        return cnt;\n    }\n};\n```
[]