You may have been counting the number of high and low points, or points where the value of the function is 1 or . You need to count just the number of points where the function equals 1.