Line counting in Windows

SET /A LINES=0 && FOR /F "usebackq" %L IN (`dir /s/ad/b`) DO @SET /A LINES=!LINES!+1

Will show you a poor excuse for the "wc -l" function.