string input="Hello World!"+Environment.NewLine+"Goodbye World.";
int wordCount=Regex.Matches(input,"[\\w\'-]+").Count;
Console.WriteLine("Word Count: {0}",wordCount);
Needs further testing, and probably not perfect. But on the tests I have done so far, it seems to account for itself. Hope this helps, Graham. -- modified at 17:50 Sunday 30th April, 2006