```
public int MaxCount(int m, int n, int[,] ops) {
int row = m;
int col = n;
for(int i = 0; i < ops.GetLength(0); i++)
{
row = Math.Min(ops[i,0], row);
col = Math.Min(ops[i,1], col);
}
return row * col;
}
```