```python
def cell_count(grid: list, value: int) -> int:
    if not grid or not any(row for row in grid):
        return 0

    count = sum(row.count(value) for row in grid)
    return count
```