'Utility function to count the number of messages in a queue.
Note: This function now calls GetQueueAttributes to obtain
an \'approximate\' count of the number of messages in a queue.'

def count(self, page_size=10, vtimeout=10):

    a = self.get_attributes('ApproximateNumberOfMessages')
    return int(a['ApproximateNumberOfMessages'])
