NLOC is a command-line based source line counter tool. It supports various languages like C, C++, C#, Java, Visual Basic, Pascal, and Delphi, and is compatible with Visual Studio project and solution files. It generates textual reports and/or XML documents. It can be used from any external program, script or batch file. The results will be grouped by projects, which can be explicitly specified by the user.
Features include counts several statistics: total number and percentage of code, comment, and blank lines, recursive search for source files, filtering with wildcards, using projects as file groups, compatible with Visual Studio 2003 or 2005 project and solution files, and exporting reports to text files and XML documents.