Easy method in python
\n\nclass Solution:\n    def countGoodRectangles(self, rectangles: List[List[int]]) -> int:\n        ans = 0\n        count = 0\n        for i in rectangles:\n 
\n```\nclass Solution:\n    def countGoodRectangles(self, rectangles: List[List[int]]) -> int:\n        ans = 0\n        count = 0\n        for i in rectangles:\n            temp = min(i)\n            if temp > ans:\n                ans = temp\n                count = 1\n            elif temp == ans:\n                count += 1\n        return count\n        \n```
['Python3']