```python
def cell_count(grid: list, value: int) -> int:
    """Count the number of cells in the grid that hold the given value."""
    count = 0
    for row in grid:
        for cell in row:
            if cell == value:
                count += 1
    return count
```