from typing import List


def gen_csv_header(objects: List[dict]) -> dict:
    """
    Make options for CVS export.
    :param objects: parsed objects to analyse.
    :return: key: column name, value:
    - type: trivial or tuple
    - count: when tuple then max count values in tuple
    """
    options = {}
    for o in objects:
        for k, v in o.items():
            if isinstance(v, tuple):
                option = options.get(k, {'type': 'tuple', 'count': len(v)})
                option['count'] = max(option['count'], len(v))
                options[k] = option
            if isinstance(v, (str, int, float)):
                options[k] = {'type': 'trivial'}
    return options