#Ohcount (#Ohloh count) is a source code line counter with language detection.
Ohcount is a tool which counts source lines of code (#SLOC) in source files. Along with line counting ohcount can detect programming languages present in a file and licensing terms on a per file basis. Ohcount can be used on both single files as well as entire directories.
Website 🔗️: https://github.com/blackducksoftware/ohcount
apt 📦️: ohcount