def return_network_layers(connectivity):
    """
    return_network_layers takes a string, that describes the connectivity
    of the network i.e. "BLT", and returns the number of layers the
    network has.
    """
    if "D" in connectivity:
        return (7-1)*2+1
    else:
        return 7