code: def len(self, queue_name):
          
          try:
              stats = self.conn.stats_tube(queue_name)
          except beanstalkc.CommandFailed as err:
              if err[1] == 'NOT_FOUND':
                  return 0
  
              raise
  
          return stats.get('current-jobs-ready', 0)
docs: Returns the length of the queue.
  
          :param queue_name: The name of the queue. Usually handled by the
              ``Gator`` instance.
          :type queue_name: string
  
          :returns: The length of the queue
          :rtype: integer