New to programming,learning python. This week are focusing on reading URL text files. Looking to read through a text file and count the amount of times the character "e" occurs.
import urllib.request
content = urllib.request.urlopen("https://www.gutenberg.org/files/2701/old/moby10b.txt")
content.read()
counter = 0
for 'e' in content:
counter +=1
print(counter)
Any advice?