CodeMetrics is a flexible and extensible Perl package to calculate general stats from code. Currently the VB.Net, Perl and C++ languages are supported, with C# and C on the way. If you're wondering how many lines of code you've written, this is for you