def METHOD_NAME(s: str) -> int:
    """The number of leading spaces in a string
    Args:
        s: str. The input string.
    Returns:
        int. The number of leading spaces.
    """
    return len(s) - len(s.lstrip(' '))