Code-stats is a project mainly written in ..., it's free.
Some useful commands for finding code stats on the shell
function lines_of_scala_code { find . | ack -v .git | xargs file | ack -v directory | cut -d":" -f1 | ack ".scala$" | ack $1 | xargs cat | wc -l }