Count occurrences

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