Fix invalid operation exception, use Count now to check if they're elements in the queue