.im man.im
.NM linecnt count lines in input
.SY linecnt
.FU
.ital linecnt
counts the lines in its input and writes the total as a line of
text to the output.
.EG
.Q1
linecnt
A single line of input.
<ENDFILE>
.ital 1
.Q2
