def count_confidences(graph: BELGraph) -> typing.Counter[str]:
return Counter(<EOL>(<EOL>'<STR_LIT:None>'<EOL>if ANNOTATIONS not in data or '<STR_LIT>' not in data[ANNOTATIONS] else<EOL>list(data[ANNOTATIONS]['<STR_LIT>'])[<NUM_LIT:0>]<EOL>)<EOL>for _, _, data in graph.edges(data=True)<EOL>if CITATION in data  <EOL>)<EOL>
Count the confidences in the graph.