Implement --num-rows subsampling.