Мне нужно подсчитать частоту слова в тексте с помощью python. Я думал о том, чтобы хранить слова в словаре и иметь счет для каждого из этих слов.
Теперь, если мне нужно отсортировать слова в соответствии С# вхождениями. Могу ли я сделать это с тем же словарем вместо использования нового словаря, который имеет ключ как счетчик и массив слов как значения?