How to stop getting values of ADC's after several data taken.

Hello, I'm new to programming. So I want to read a value of tilt sensor using ADC's ADS1256 with 8 Channel ADC. This is my code.

#include <ADS1256.h>
#include <SPI.h>

// Initialize ADS1256 object
#define BOARD_CLOCK 7.68 // crystal frequency used on ADS1256
#define VREF 2.5 // voltage reference
ADS1256 adc(BOARD_CLOCK, VREF);

void setup()
{
  Serial.begin(9600);
  Serial.println("Start ADC");
  adc.begin(ADS1256_DRATE_15SPS,ADS1256_GAIN_1, false);
  Serial.println("Mulai!!");
  Serial.println("Channel 1       Channel 2       Channel 3       Channel 4       Channel 5       Channel 6       Channel 7       Channel 8");
}  


void loop()
{ 
  for (int i = 0; i < 8; ++i)
  {
    adc.waitDRDY();
    adc.setChannel(i);
    if (
    Serial.print(adc.readCurrentChannel(), 10);
    Serial.print("\t");
    delay(100);
  }
  Serial.println();
}

So i want to sample several data (approximately 100) or do sampling for several times.
What method that I can do? I tried to use "if" and "count" but it didn't work.

https://www.arduino.cc/en/tutorial/smoothing

Another for loop seems like a reasonable way to limit your sampling to N times. Wrap it round the existing channel loop.