A quick search gives me tawbaware wc, but it does not accept stdout as input stream, meaning I can not use pipe within a DOS session.
Note:
I can not install cygwin or use powershell (which would have allowed a ‘|foreach-object {(get-content $_).count}‘)
You can use the original ‘wc’, built for windows: it is part of the coreutils package. Get the most recent coreutils exe.