marked rare words and counted frequencies