Fixed formula for number of vertices

Current formula was just for internal degree 3