title: Counting values in an employee dictionary database in python
body: <p>python is  new language for me so this question might sound simple, but if someone can point me in the right direction, I would appreciate it! I created a dictionary call employees and it holds some value about them:</p>
  
  <p>I'm trying to read how many people are in each department, for example: tech-2, accounting-1. </p>
  
  <p>I have something like this, but it prints out blank.</p>
  
  <pre><code>  def main():
     employees= {'name': 'John', 'empID': '102', 'dpt': 'tech', 'title': 
     'programmer', 'salary': '75'}
     {'name': 'Jane', 'empID': '202', 'dpt': 'tech', 'title': 'programmer', 
     'salary': '80'}
     {'name': 'Joe', 'empID': '303', 'dpt': 'accounting', 'title': 
     'accountant', 'salary': '85'}
      for item in employees:
      dic = employees[item]
      if dic['dpt'[0]]==dic['dpt'[1]]:
          duplicate += 1
          print("there are "+ duplicate)
      else:
          print("There are no duplicate")
  </code></pre>