Simple and Easy C++ Solution
\nclass Solution {\npublic:\n    int countGoodRectangles(vector<vector<int>>& rectangles) {\n        map <int, int> m;\n\n        for (auto i : rectangles)\n   
```\nclass Solution {\npublic:\n    int countGoodRectangles(vector<vector<int>>& rectangles) {\n        map <int, int> m;\n\n        for (auto i : rectangles)\n            m[min(i[0], i[1])]++;\n\n        return m.rbegin()->second;\n    }\n};\n```
['C', 'C++']