Create Unique

This piece of code reads in a csv file that contains a particular info for a user stored in column 1, and a set of other info stored in columns 2 to n for that same user. The code then generates a file 'all.csv' that has info about the all existing column 1 data. The code also generates a file 'unique.csv' which only contains unique column 1 info. And the code then creates a file called 'count.csv' which contains information about how many instances of each unique element are actually occurring in the original file.