'Return the number of messages in a queue.'

def _size(self, queue):

    url = self._new_queue(queue)
    resp = self.sqs.get_queue_attributes(QueueUrl=url, AttributeNames=[u'ApproximateNumberOfMessages'])
    return int(resp[u'Attributes'][u'ApproximateNumberOfMessages'])
