title: Python - how to count number of uppercase letters in a string that is in a list
body: <p>For example, if I have this list:</p>
  
  <pre><code>s = ["Johnny and Annie", "Great job guys", "She and I"]
  </code></pre>
  
  <p>how can I make Python count the number of uppercase letters in each element of this list? For this example, Python should return 2, 1, 2.</p>
  
  <p>This is my code so far:</p>
  
  <pre><code>def poisci_pare(besedilo):
  x = []
  seznam = []
  t = re.split("[.]", besedilo)
  for e in t:
      x = x + e.split()
  for s in x:
      if s == s.capitalize() and not s.startswith('"'):
          seznam.append(s)
  </code></pre>
  
  <p>This function makes a list where it separates sentences by dots and then it filters out all the uppercase words in it, but I've no idea how to make it count the uppercase letters..</p>