NoneCloc (Count Lines of Code) counts lines of code, blank lines, and comment lines in source code in many different programming languages.

cloc (Count Lines of Code) is an open source Perl program that counts lines of code, blank lines, and comment lines in source code in many different programming languages. It can also determine differences in lines of code, blank lines, and comment lines between two files or even between two directory trees.

cloc runs on a variety of operating systems, including Linux, FreeBSD, Windows and OSX.

Documentation: https://github.com/AlDanial/cloc

Cloc is available for installation through homebrew on macs: brew install cloc