count_edges function

Get a count of all edges