Avoid overflowing for_each_n's counter for input size near the threshold...

....