using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
public class Program
{
//1- Write a program that reads a text file and displays the number of words.
public static void Main()
//change below code
var path = @"C:\Users\william.barbazette\Desktop\example.txt";
var wordNum = new List<string>(File.ReadAllText(path).Split(' '));
Console.WriteLine(wordNum.Count());
}