Thanks for all of your replies.
Yes, column 1 shows the frequency of the value in column 1.
Could you please show me how to load my txt.file into your script, so that I can actually try it.
I tried to do it the way I did it with my last script, but it somehow doesn't work. And as mentioned I am such a beginner in Perl that I don't know any other ways of how to upload txt files yet...
Thanks so much to all of you for trying to help me!