Se usi la powershell di microsoft è sufficiente che tu scriva dal prompt dei comandi

(gc nomefile.estensione).count