If the number of diagonals that can be drawn in a polygon is 9, then what is the number of sides that the polygon has?