Count lines of code, comments, and blank lines in source files
Statistics utility to count lines of code
cloc
$ cloc myfile.py
$ cloc /path/to/project
$ cloc --by-file-by-lang /path/to/project