title: Accessing key/value pairs in a dictionary created by the built-in counter function (python 3.4)
body: <p>So I found my answer here <a href="https://stackoverflow.com/questions/23240969/python-count-repeated-elements-in-the-list?answertab=active#tab-top">Python: count repeated elements in the list</a> </p>
  
  <p>but I cannot find the second part of my question. Which is, how do I access a value in a dictionary created by the function, Counter? This is the code I have so far:</p>
  
  <pre><code>import collections
  from collections import Counter
  only_callers=[]
  for line in infile:
      calls=line.split(';')
      index=calls[1]
      only_callers.append(index)
      count=Counter(only_callers)
  for value in count:
      print(count.get[only_callers])
  </code></pre>
  
  <p>The context for this question, is that I need to count the number of times each number has called and then put that number in a table. I get the number of calls from a file called calls.txt. </p>
  
  <p>So here is my output when I print calls:
      Counter({'7804922860': 502, '7801234567': 384, '7809876543': 374....})</p>
  
  <p>Now when I try to access the values in the second for loop, I get this:
      TypeError: 'builtin_function_or_method' object is not subscriptable</p>
  
  <p>So how do I access(and extract) my values(each individual one) so I may place them on a table manually?</p>
  
  <p>Note: The second for loop where I print the count dictionary is just to check if it works or not, and it obviously does not from the TypeError message</p>