How to measure # of lines of code in project?
Check CLOC, it's a source code line counter that supports many languages, I always recommend it.
It will differentiate between actual lines of code, blank lines or comments, it's very good.
In addition there are more code counters that you can check:
No experience if it runs on Windows, tho, but searching on the web showed some results of people getting it to work on Windows..
If you are on a linux box, the easiest way is probably directed by this SO question: