empty queue should return zero