static void Main() { Welcome(); Console.WriteLine("Please enter a word."); string Word = Console.ReadLine(); Console.WriteLine("Please enter a sentence that uses that word at least once."); string Sentence = Console.ReadLine(); RepeatCounter NeedsCount = new RepeatCounter(Word, Sentence); NeedsCount.ValidInputCheck(Word); NeedsCount.ValidInputCheck(Sentence); Console.WriteLine("Your sentence contains the word " + Word + " " + NeedsCount.WordCount() + " time(s)."); }