import java.io.*;
import java.util.*;

public class Program_10_3 {
	public static void main(String [] args) throws Exception {
		Scanner scanner = new Scanner(new File("numbers_2.text"));

		int count = 0;

		while (
		scanner.hasNextInt()) {
			int number = scanner.nextInt();
			count++;									// Note we're not doing anything with the number
		}
		System.out.println(count + " numbers were read in");
	}
}
