Javascript solution :)
In first loop MaxLen is found.\nIn second loop counting number of MaxLen rectangles.\n\n\n\n/*\n * @param {number[][]} rectangles\n * @return {number}\n */\nvar
In first loop MaxLen is found.\nIn second loop counting number of MaxLen rectangles.\n\n```\n\n/*\n * @param {number[][]} rectangles\n * @return {number}\n */\nvar countGoodRectangles = function (rectangles) {\n    let max = 0\n    for (let i = 0; i < rectangles.length; i++) {\n        rectangles[i][0] < rectangles[i][1] ? rectangles[i][1] = rectangles[i][0] : rectangles[i][0] = rectangles[i][1]\n        rectangles[i][0] > max ? max = rectangles[i][0] : max = max\n    }\n\n    let count = 0\n    for (let i = 0; i < rectangles.length; i++) {\n        rectangles[i][0] === max ? count++ : count = count\n    }\n    return count\n};\n```
['JavaScript']