output correct number of lines for shuffling