bug-fix: incorrect count in ranked_word word usage

- correctly account for the use of ranked_word_set words