title: Using a function to return a count of keys within a dictionary
body: <p>I am a newbie when it comes to Python, let's just start with that.  </p>
  
  <p>Now that that is out of the way, I am struggling with dictionary/list problem in Python.  I have been tasked with writing a function that takes two arguments, one being a dictionary and one being a list of keys.  I need to return a count of how many of keys in this list appear in the dictionary.  Here is what I have so far:</p>
  
  <pre><code>def members({'name': 'Scott', 'title': 'esquire'},['name', 'age', 'title'])
      total_num = 0
      for key in dict:
        if name in members:
          total_num += 1
        elif age in dict:
          total_num += 1
        elif title in members:
          total_num += 1
        else:
          break
        print(total_num)
  </code></pre>
  
  <p>I know my syntax here is probably way off, but I'm curious if I'm on the right track here.  Any help or guidance would be appreciated.</p>
  
  <p>Cheers!</p>