Unique sorted values linux

Count occurrences of each unique line

sort file.txt | uniq -c | sort -rn