The loc program provides the capability to count source and comment lines in multiple languages, currently including C/C++, Fortran, IDL, Java, Lisp, Matlab/Octave, Perl, PHP, Python, SAS, shell, SQL, and Tcl/Expect. Multiple files can be scanned, with recusion through subdirectories, and the grand total counts will also be given.