Number of values in an array above a threshold