C++ 32 ms
\nclass Solution {\npublic:\n    int countGoodRectangles(const vector<vector<int>>& rectangles) {\n        \n        int side=0, maxLen=0, count=0;\n        \n 
```\nclass Solution {\npublic:\n    int countGoodRectangles(const vector<vector<int>>& rectangles) {\n        \n        int side=0, maxLen=0, count=0;\n        \n        for(const auto& i:rectangles) {\n            \n            side=min(i[0],i[1]);\n            \n            if(maxLen<side) {\n                maxLen=side;\n                count=1;\n            }\n            else if(maxLen==side) ++count;\n        }\n        \n        return count;\n    }\n};\n```
['C']