Microsoft Word word counter c# and groovy