Set counter to 0 if queue is empty.