def send_messages(self, messages):
counter = <NUM_LIT:0><EOL>for message in messages:<EOL><INDENT>res = self._send(message)<EOL>if res:<EOL><INDENT>counter += <NUM_LIT:1><EOL><DEDENT><DEDENT>return counter<EOL>
Send messages.

:param list messages: List of SmsMessage instances.
:returns: number of messages sended successful.
:rtype: int