x
Computes the number of upper records of the cumulative sum of x
num_records_up(x)
a vector of sample values
the number of upper records