add the rank strategy and count the number of people