wordcount function .NET 4.0