scc is a fast, polished tool for counting lines of code: https://github.com/boyter/scc The author has several great posts discussing LOC tooling, including this one on exploring codebases with it: https://boyter.org/posts/why-count-lines-of-code/