def add_dependencies(dep : dict,l):
    """Adds supplementary dependencies from l to dep.
    Returns the total number of dependencies"""
    i_0 = len(dep.values())
    for i,dep_to_add in enumerate(l):
        dep[dep_to_add] = i+i_0
    return  len(dep.values())