def _count_title_words(value):
 ret = 0
 for word in iter_words(value):
  if word.value.istitle():
   ret += 1
 return ret

def _count_title_words ( value ) : ret = 0 for word in iter_words ( value ) : if word . value . istitle ( ) : ret += 1 return ret
count only many words are titles in value .