.im man.im
.NM wordcnt count words in standard input
.SY wordcnt
.FU
.ital wordcnt
counts the words in its input and writes the total as a line of
text to the output.
A "word" is a maximal sequence of characters not
containing a blank or tab or newline.
.EG
.Q1
wordcnt
A single line of input.
<ENDFILE>
.ital 5
.Q2
.BUGS
The definition of "word" is simplistic.
