Get the edge count of a topology.