if you know the video file is good, just run a framecount.
I've used a program called VirtualDub and that's quite good for getting a job done like yours.