code: def send_messages(self, messages):
          
          counter = 0
          for message in messages:
              res, _ = self._send(message)
              if res:
                  counter += 1
  
          return counter
docs: Send messages.
  
          :param list messages: List of SmsMessage instances.
          :returns: number of messages sended successful.
          :rtype: int