Sort and dedupe a file

Terminal
sort <file> | uniq -c | sort -rn