javascript three lines 124ms
\nconst countGoodRectangles = (rectangles) => {\n    let res = rectangles.map(x => Math.min(x[0], x[1]));\n    let max = Math.max.apply(Math, res);\n    return 
```\nconst countGoodRectangles = (rectangles) => {\n    let res = rectangles.map(x => Math.min(x[0], x[1]));\n    let max = Math.max.apply(Math, res);\n    return res.filter(x => x == max).length;\n};\n```
['JavaScript']