In that case, the number of words with the same frequency n will be given by rn − rn+1,
which is the rank of the last word in the group minus the rank of the last word of the previous group of words with a higher frequency
(remember that higher-frequency words have lower ranks)