def send_messages(self, sms_messages):
if not sms_messages:<EOL><INDENT>return<EOL><DEDENT>num_sent = <NUM_LIT:0><EOL>for message in sms_messages:<EOL><INDENT>if self._send(message):<EOL><INDENT>num_sent += <NUM_LIT:1><EOL><DEDENT><DEDENT>return num_sent<EOL>
Sends one or more SmsMessage objects and returns the number of sms
messages sent.