def print_aunit_human_alerts(console, alerts):
    """A helper method printing out alerts not linked to any test case
       and returning number of critical errors.
    """

    errors = 0

    for alert in alerts:
        console.printout(f'* [{alert.severity}] [{alert.kind}] - {alert.title}')
        errors = errors + 1 if alert.is_error else 0

    return errors