Fill in countGreater so that it returns how many elements are strictly greater than threshold, using compareTo.
countGreater
threshold
compareTo
An element equal to the threshold is not counted. The program prints 2 and then 1.
2
1