Returns the rank of a number in a list of numbers