using System.Diagnostics;
public static void Main()
var sw = Stopwatch.StartNew();
var text = "Your task is to write code, which will count the amount of different words in this string." +
" So, given the string, the output should be a word and a number of times it appears in this string." +
" Please ignore punctuation and casing. When outputting the result you could choose to sort the words either by the frequency of their appearance in the text, or alphabetically." +
" Please also output the total amount of different words in the text.";
Console.WriteLine("Spent: {0} seconds", sw.Elapsed.TotalSeconds);