Ohcount is a source code line counter.
Ohcount identifies source code files in most common programming languages, and prepares total counts of code and comments. It can operate on single files or entire directory trees. Ohcount can produce line-by-line analysis of files for detailed debugging.
Ohcount is used to create the source code reports on the Ohloh website.