Simple Java Solution | Brute Force
\nclass Solution {\n    public int countGoodRectangles(int[][] rectangles) {\n\t\n        int[] k = new int[rectangles.length];\n\t\t\n        for(int i = 0; i 
```\nclass Solution {\n    public int countGoodRectangles(int[][] rectangles) {\n\t\n        int[] k = new int[rectangles.length];\n\t\t\n        for(int i = 0; i < rectangles.length; i++){\n            int minSideLength = rectangles[i][0];\n            for(int j = 0; j < rectangles[i].length; j++){\t\n                if(minSideLength >= rectangles[i][j]){\n                    minSideLength = rectangles[i][j];\n                }\n            }\n            k[i] = minSideLength;\n        }\n\t\t\n        int max = k[0];\n        for(int i = 0; i < k.length; i++){\n            if(max <= k[i]){\n                max = k[i];\n            }\n        }\n\t\t\n        int count = 0;\n        for(int i = 0; i < k.length; i++){\n            if(max == k[i]){\n                count++;\n            }\n        }\n\t\t\n        return count;\n    }\n}\n```
['Java']