Find the number of diagonals in an n-sided polygon.