I have been searching high and low for a TextEdit word count script and I found NanoCount which actually does I needed. However, I am used to using the right mouse button to find out the number of words in a text file. (You are right. I was a Windows user.)
Then I discovered Automator which comes with Mac OS X.

