<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def count_error_types(graph: BELGraph) -> Counter: """Count the occurrence of each type of error in a graph. :return: A Counter of {error type: frequency} """

    return Counter(
        exc.__class__.__name__
        for _, exc, _ in graph.warnings
    )