def count_digits(n: int) -> int:
    """Counts the digits of number in base 10.

    Args:
        n: A non-negative integer.

    Returns:
        The number of digits in the base-10 representation of ``n``.
    """
    return len(str(n))