java || Beats 100%
\nclass Solution {\n    public int countGoodRectangles(int[][] rectangles) {\n        int max = 0,len = 0;\n        for(int i = 0;i<rectangles.length;i++){\n   
```\nclass Solution {\n    public int countGoodRectangles(int[][] rectangles) {\n        int max = 0,len = 0;\n        for(int i = 0;i<rectangles.length;i++){\n            int side = Math.min(rectangles[i][0],rectangles[i][1]);\n            if(side > len){\n                len = side;\n                max = 1;\n            }\n            else if(side == len)\n                max++;\n        }\n        return max;\n    }\n}\n```
['Java']