Rolled the current commit back to 14bad15fe54f397c307f7d371c400a73e7d89322, and added the final code for the least/most frequent tokens.