<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def check_num_tasks(chain, task_count):
 """Make sure there are a specific number of specific task types. Currently we only check decision tasks. Args: chain (ChainOfTrust):
 the chain we're operating on task_count (dict):
 mapping task type to the number of links. Raises: CoTError: on failure. """

    errors = []
    # hardcode for now.  If we need a different set of constraints, either
    # go by cot_product settings or by task_count['docker-image'] + 1
    min_decision_tasks = 1
    if task_count['decision'] < min_decision_tasks:
        errors.append("{} decision tasks; we must have at least {}!".format(
            task_count['decision'], min_decision_tasks
        ))
    raise_on_errors(errors)