Easy Solution in C
Code
# Code
```c []
int countGoodRectangles(int** rectangles, int rectanglesSize, int* rectanglesColSize){
    int max = INT_MIN;
    int count = 0;
    for(int i=0; i<rectanglesSize; i++){
        int temp = (rectangles[i][0] > rectangles[i][1]) ? rectangles[i][1] : rectangles[i][0];
        if(temp > max){
            max = temp;
            count = 0;
        }
        if(temp == max) count++;
    }
    return count;
}
```
['Array', 'C']