sort file.txt | uniq -c