cloc counts blank lines, comment lines, and physical lines of source code in many programming languages.

https://github.com/AlDanial/cloc