def deepLength(L):
    if not L:
        return 0
    else:
        head, tail = L[0], L[1:]
        headContributition = deepLength(head) \
            if isinstance(L[0], list) \
            else 1
        return (headContribution + deepLength(L[1:]))
    

52c7d6589d7aa5a2b97b56501d16a1b0dd86686a
<mask token>

def deepLength(L):
    if not L:
        return 0
    else:
        head, tail = L[0], L[1:]
        headContributition = deepLength(head) if isinstance(L[0], list) else 1
        return headContribution + deepLength(L[1:])

def deepLength(L):
    if not L:
        return 0
    else:
        head, tail = L[0], L[1:]
        headContributition = deepLength(head) \
            if isinstance(L[0], list) \
            else 1
        return (headContribution + deepLength(L[1:]))
    
