I need to count values in a range of values that score above 18. The values aren't consecutive (e.g. a, c, e, g). Once they have counted the values in this range that score above 18 I need it to return a value of 0 if count is greater than 2 and 1 if less than 2.

eg.
a c e g
2 19 3 24 There are 2 scores above 18 therefore the answer is 0.