```python
def digit_count(value: int) -> int:
    """Return how many digits a whole number is written with. Nothing is written with one digit, and a minus sign in front of a number is not a digit and is not counted."""
    if not isinstance(value, int) or value < 0:
        raise ValueError("Value must be a non-negative integer")
    return len(str(value))
```