File size: 231 Bytes
8dc315b
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13


import sys
from collections import defaultdict

d = defaultdict(int)
with open(sys.argv[1], "r") as ifile: 
    for line in ifile: 
        line_split = line.split(",")
        d[line_split[2]] += 1

print(str(len(d)) + " uniq")