def get_dict_list_len(d, keys=[], negate=False):
    """Gets the sum of each list in dict `d`

    Parameters
    ----------
    d : dict of str : list
        * dict to sums of
    keys : list of str
        * list of keys to get sums of, if empty gets a sum of all keys
    negate : bool
        * only used if keys supplied
        * False : get the sums of `d` that do match keys
        * True : get the sums of `d` that do not match keys

    Returns
    -------
    list_len : int
        * sum of lists in `d` that match keys
    """
    if keys:
        if negate:
            list_len = sum([len(d[k]) for k in d if k not in keys])
        else:
            list_len = sum([len(d[k]) for k in d if k in keys])
    else:
        list_len = sum([len(d[k]) for k in d])
    return list_len