from typing import Dict


def count_color_classes(colors: map) -> Dict:
    """
    :param colors: [{'frequency':5, 'color_class':'000000'}, ...]
    :return: {'000000':5, 'FFFFFF': 8, ... }
    """
    color_dict = {}
    for color in colors:
        try:
            color_dict[color['color_class']] += color['frequency']
        except KeyError:
            color_dict[color['color_class']] = color['frequency']
    return color_dict