
    Given a collection of delivery routes where each route consists of multiple checkpoints, develop a function that determines how many routes contain a specific checkpoint location. The function should analyze nested route structures where each route may contain sub-routes or route segments, and count only unique occurrences of the target checkpoint within each distinct route.
    

    
def count_element_in_list(list1, x):
    """
    Given a collection of delivery routes where each route consists of multiple checkpoints, develop a function that determines how many routes contain a specific checkpoint location. The function should analyze nested route structures where each route may contain sub-routes or route segments, and count only unique occurrences of the target checkpoint within each distinct route.
    

    """
def count_element_in_list(list1, x):
    """
    Given a collection of delivery routes where each route consists of multiple checkpoints, develop a function that determines how many routes contain a specific checkpoint location. The function should analyze nested route structures where each route may contain sub-routes or route segments, and count only unique occurrences of the target checkpoint within each distinct route.
    

    """
    ctr = 0
    for i in range(len(list1)):
        if x in list1[i]:
            ctr += 1
    return ctr