It is known that in a convex n-gon (n>3) no three diagonals pass through one point. Find the number of points (other than the vertex) where pairs of diagonals intersect.