from typing import Sequence


def depth_of(parts: Sequence[str]) -> int:
    """
    Calculate the depth of URL parts
    :param parts: A list of URL parts
    :return: Depth of the list
    :private:
    """
    return len(parts) - 1