Creates a $sample pipeline stage with the specified sample size
the $sample pipeline stage
the sample size