Maximums occur at the highest points, at the top of the hills, when the function is 1 and minimums occur at the lowest points, at the bottom of the valleys, when the function is . Perhaps you only counted the maximums.