file = open('path', 'r')
close('path')
with open('path', 'r') as file:
file.readlines()
for line in open('path', 'r'):
iterate over lines
opening a file and
closing a file
count = { }
for element in structure:
if element in count:
count[element] += 1
else:
count[element] = 1