```python
def unit_price(total: int, count: int) -> int:
    """The price of one unit, in whole pence."""
    if count == 0:
        raise ValueError("count cannot be zero")
    if total <= 0:
        raise ValueError("total must be greater than zero")
    return total // count
```