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 ""