There are unix-tools-for-windows packs available and there are wc.exe included.
With plain DOS commands this is a lill bit difficult,
maybe "for /f" could help, loop this three times and if errorlevel >0 then delete this file <???>
Real solution would be an AutoHotkey
script .... but you have asked this there
already, so i will wait what happens.