modeling data to polynomial functions

My book shows a quartic function in the shape of an upside down m, where the ends go on to infinitee. Under the chart the books says it changes directions 3 times. At the same time it shows a scatter plot of the same exact shape but says it changes direction 2 times.

Does anyone have any idea why? This is advanced mathematical concepts page 258.