Simple JavaScript Solution
\nvar countGoodRectangles = function(rectangles) {\n    let count = 0\n    let max = 0\n    \n    for(let i of rectangles){\n        let side = Math.min(i[0], i
```\nvar countGoodRectangles = function(rectangles) {\n    let count = 0\n    let max = 0\n    \n    for(let i of rectangles){\n        let side = Math.min(i[0], i[1])\n        if(side > max){\n            max = side\n            count = 1\n        } else if(side == max) {\n            count++\n        }\n    }\n    return count\n};\n```
['JavaScript']