def add_entry_to_all_stats(results, project_id, episode_id, task_type_id,
    task_status_id, task_status_short_name, task_status_color, task_count,
    entity_nb_frames):
    """
    Add to aggregated entry of stats results, information of given count for
    given entity, task type and task satus.
    """
    task_type_id = str(task_type_id)
    task_status_id = str(task_status_id)
    results.setdefault('all', {'all': {}})
    results['all'].setdefault(task_type_id, {})
    results['all'][task_type_id].setdefault(task_status_id, {'name':
        task_status_short_name, 'color': task_status_color, 'count': 0,
        'frames': 0})
    results['all'][task_type_id][task_status_id]['count'] += task_count or 0
    results['all'][task_type_id][task_status_id]['frames'
        ] += entity_nb_frames or 0
    results['all']['all'].setdefault(task_status_id, {'name':
        task_status_short_name, 'color': task_status_color, 'count': 0,
        'frames': 0})
    results['all']['all'][task_status_id]['count'] += task_count or 0
    results['all']['all'][task_status_id]['frames'] += entity_nb_frames or 0
