By combining the power of git and bash, we can have in an instant an estimation of lines number in a project.
For instance to count lines number in versionned perl files:
$ git ls-files | egrep ".*(driver|core).*pl$" | xargs wc -l
git ls-files
will only return files versionned which is a first interesting filter.