Line Counter is an office program to be run in the Windows command line (or in MSDOS) which will be highly useful to programmers.
The main function of Line Counter is to generate reports which show the total number of lines of code and lines of comments in the source code of any of the following languages: C, C++, C#, Java, JavaScript and PHP. This way you can take control of how many lines are really of code, and how many are just comments.
Line Counter is completely free.