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