Simple and effective Javascript Solution
\nvar countGoodRectangles = function(rectangles) {\n    let max = 0;\n    let count = 0;\n    \n    for(let i = 0; i < rectangles.length; i++) {\n        let mi
```\nvar countGoodRectangles = function(rectangles) {\n    let max = 0;\n    let count = 0;\n    \n    for(let i = 0; i < rectangles.length; i++) {\n        let minSide = Math.min(rectangles[i][0], rectangles[i][1])\n        \n        if(minSide > max) {\n            count = 0\n            max = minSide\n        } \n        \n        if(minSide === max) count++\n    }\n    \n    return count\n};\n```
['JavaScript']