return edgeCount, not edgesCount