def calc_tot_orbits(n_orbit_dict):
    """Calculate the total number of direct and indirect orbits in
    n_orbit_dict.

    Parameters
    ----------
    n_orbit_dict : dictionary
        A dictionary where each key is an object in the system and each value
        is a tuple of 2 values. The first represents the number of direct
        orbits and the second the number of indirect orbits.

    Returns
    -------
    n_direct_tot : int
        The number of direct orbits
    n_indirect_tot : int
        The number of indirect orbits
    """

    n_direct_tot = sum([n_orbits[0] for n_orbits in n_orbit_dict.values()])
    n_indirect_tot = sum([n_orbits[1] for n_orbits in n_orbit_dict.values()])

    return n_direct_tot, n_indirect_tot