from collections import Counter
with open('allocFile.txt') as fp:
    counter = Counter(line.split()[0] for line in fp)
for bytes, count in counter.most_common():
    pass
Python dictionary with variables as keys