countwords.vbs
'Word count VBS.
Dim X,Y,countOf,StrWord,docfile
Set X = CreateObject("Word.Application")
docfile="filename.doc"
For Each y In x.Documents.Add(docfile).Words
strword = Trim(Replace(y.Text, vbCrLf, ""))
If StrComp(strword, "and", 1) = 0 Then
countof = countof + 1
End If
Next
x.Quit
Set x = Nothing
WScript.echo countof
right now just searches one file. as is could be used with a batch file in some fashion.
EDIT: darn it, beaten to the punch. Oh well, mine uses a different method. (I think it's slower though)