Beats 94.06% of users with Python in python || 126 ms
Code\n\nclass Solution(object):\n    def countGoodRectangles(self, rectangles):\n        """\n        :type rectangles: List[List[int]]\n        :rtype: int\n  
# Code\n```\nclass Solution(object):\n    def countGoodRectangles(self, rectangles):\n        """\n        :type rectangles: List[List[int]]\n        :rtype: int\n        """\n        max_length = max(min(rec) for rec in rectangles)\n        count = sum(1 for rec in rectangles if min(rec) == max_length)\n        return count\n```
['Python']