queue_size method