in reply to Re^2: Word incidence count
in thread Word incidence count

If you're talking about a plain text document:
print `wc -w /path/to/file.txt`;
cLive ;-)