#partner was Logan Zipp
fname = "mbox-short.txt"
handle = open(fname) 
counter = dict()
for line in handle :
	if line.startswith("From:")  :
		line = line.rstrip()
		print (line)
		words = line.split()
		sender = words[1]
		pos = sender.find("@")
		email = sender[pos+1:]
		print (email)
		counter[email] = counter.get(email,0) + 1
	
		
			

print (counter)
		
#print(word,max)
#print (words)
#print (sender)
#print (counter)
a5f1566ae5713c17ee110e4e0a41837f2041c633
<mask token>

<mask token>
for line in handle:
    if line.startswith('From:'):
        line = line.rstrip()
        print(line)
        words = line.split()
        sender = words[1]
        pos = sender.find('@')
        email = sender[pos + 1:]
        print(email)
        counter[email] = counter.get(email, 0) + 1
print(counter)

fname = 'mbox-short.txt'
handle = open(fname)
counter = dict()
for line in handle:
    if line.startswith('From:'):
        line = line.rstrip()
        print(line)
        words = line.split()
        sender = words[1]
        pos = sender.find('@')
        email = sender[pos + 1:]
        print(email)
        counter[email] = counter.get(email, 0) + 1
print(counter)

#partner was Logan Zipp
fname = "mbox-short.txt"
handle = open(fname) 
counter = dict()
for line in handle :
	if line.startswith("From:")  :
		line = line.rstrip()
		print (line)
		words = line.split()
		sender = words[1]
		pos = sender.find("@")
		email = sender[pos+1:]
		print (email)
		counter[email] = counter.get(email,0) + 1
	
		
			

print (counter)
		
#print(word,max)
#print (words)
#print (sender)
#print (counter)