adding counter for out_edges