You can find the unique entries from a file with the help of uniq command. This command is available in your Linux system
$ cat nums.txt | uniq -c
Here flag -c is used to count the entries.
Hope this answer help you.
To learn more about Linux, enroll in Linux administration course online today.