Add argument to specify threshold for rank count