You need to solve the equation for E to get the number of edges.