from typing import Counter


def get_balanced_counter(list_in_need_of_weights):
    """Balance weights such that all weight together sum to list_len
    and the weights for each key sum together to list_len / counter_len
    """
    list_len = len(list_in_need_of_weights)
    counter = Counter(list_in_need_of_weights)
    counter_len = len(counter)
    return {key: list_len / (label * counter_len)
            for key, label in counter.items()}