Get for each name (word/string) in a list the frequency of it's occurrence (sorted)

# Count the number of repeats for each ID in the list

sort mylist.txt | uniq -c | awk '{print $2"\t"$1}' | sort -rnk 2