If the queue is empty, return 0 for queue length