Walker is a simple command line utility that can count lines of your code in your directory.
You can provide it with --ext flag which should be a comma separated list of file extentions which file program should count. If flag is not present it reads all of them.
Walker also count blank lines. If that is not what you want use --omit-blank flag