A plane intersects a prism parallel to the base of the prism. The cross section is a polygon with eight sides. The base of the prism has how many sides?