edge_count is a free generic function

It is no longer bound to a given implementation