title: Counting strings from multiple files (Newsfeed Activity)
body: <p>My program is meant to print the top <em>n</em> users that have seen the most 'tweets' and how many they would have seen. A seen tweet is defined as a tweet that comes from a user they follow, when they are mentioned (@user) in a tweet, a DM, or as the author of retweeted tweets.</p>
  
  <p>Using a dummy file (follows.txt):</p>
  
  <pre><code>andrew fred
  fred
  judy andrew fred
  george judy andrew
  john george
  </code></pre>
  
  <p>The first word being a user with the remaining words in the string being people they follow</p>
  
  <p>A snippet of code used to determine who each user follows:</p>
  
  <pre><code>for line in lines:
      names = line.split()
      follow_dict[names[0]] = len(names)-1
      if max_follower &lt; len(names)-1:
          max_follower = len(names)-1
  </code></pre>
  
  <p>Using a second dummy file (stream.txt) the general activity is shown:</p>
  
  <pre><code>andrew I hate mondays.
  fred Python is cool.
  fred Ko Ko Bop Ko Ko Bop Ko Ko Bop for ever
  andrew @fred no it isn't, what do you think @john???
  judy @fred enough with the k-pop
  judy RT @fred Python is cool.
  andrew RT @judy @fred enough with the k pop
  george RT @fred Python is cool.
  andrew DM @john Oops
  john DM @andrew Who are you go away! Do you know him, @judy?
  </code></pre>
  
  <p>The sample out put of the code is supposed to be:</p>
  
  <pre><code>Enter n: 10
  6 judy
  5 fred george
  3 andrew john
  </code></pre>
  
  <p>Usually if I were to ask for help here I would at least have some code to show that works, but not completely as intended or with errors. This time I don't even know where to begin. If there is anyone that can help me I'd be very grateful.</p>