Code understanding

Can you please let me know what below 3 lines are doing in the below piece of code. Please let me know in detail why [1] has been put up in the below lines.

email = ln.split(’ ‘)[1]
domain = email.split(’@’)[1]
email_domain[domain]=email_domain.get(domain,0)+1

def count_message_from_domain():
fhand = open(’/cxldata/datasets/project/mbox-short.txt’)
email_domain ={}
for ln in fhand:
ln = ln.strip()
if ln.startswith(‘From ‘) or ln.startswith(‘From:’):
email = ln.split(’ ‘)[1]
domain = email.split(’@’)[1]
email_domain[domain]=email_domain.get(domain,0)+1
return email_domain