```python
def digit_count(value: int) -> int:
    """Return the number of digits in a whole number, excluding any sign."""
    if value == 0:
        return 1
    return len(str(abs(value)))
```