Software >> OS >> Windows >> Command Line >> How to count lines in a text file or output with find command

type the command output to

find /c /v ""

e.g.

type myfile.txt | find /c /v ""