docs: def count_relations(graph) -> Counter:
      """Return a histogram over all relationships in a graph.
  
      :param pybel.BELGraph graph: A BEL graph
      :return: A Counter from {relation type: frequency}
      """
      return Counter(
          data[RELATION]
          for _, _, data in graph.edges(data=True)
      )