```
public class Solution {
public int maxCount(int m, int n, int[][] ops) {
int[] result = new int[]{m, n};
for (int i = 0; i < ops.length; i++) {
result[0] = Math.min(result[0], ops[i][0]);
result[1] = Math.min(result[1], ops[i][1]);
}
return result[0] * result[1];
}
}
```