code: def total_msgs(xml):
      '''count total number of msgs'''
      count = 0
      for x in xml:
          count += len(x.message)
      return counf total_msgs(xml):
      '''count total number of msgs'''
      count = 0
      for x in xml:
          count += len(x.message)
      return count
docs: count total number of msgs