A simple tool for counting lines of code in files. loc supports traversing directories and include files based on extensions.
Example: loc.exe C:\\projects\\myproject *.cs *.aspx *.js *.css
This will count loc in all subdirectories of C:\projects\myproject where the file extension is any of .cs, .aspx, .js or .css.