title: python 3.4 Counting occurrences in a .txt file
body: <p>I am writing a "simple" little program for a class i am taking. this is supposed ask me for what team to search for and then return the number of times it appears on the list in a .txt file. it requests input like it should and seems to run great! its been running for an hour now :) i am getting no errors at all it seems to be stuck in a loop.
  thank you all in advance for your help!</p>
  
  <p>here is my code</p>
  
  <pre><code>count = 0
  
  def main():
  # open file
      teams = open('WorldSeriesWinners.txt', 'r')
  # get input
      who = input('Enter team name: ')
  #begin search
      lst = teams.readline()
      while lst != '':
          if who in lst:
              count += 1
  
  teams.close()
  print(count)
  
  main()
  </code></pre>