in reply to getting line count in cmd.exe
See Perl Cookbook, chapter 8.2 for more informations
perl -ne 'END{print $.}' file [download]
hth,PooLpi