There are loads of free tools available to get metrics from Java projects. I have found much more difficult to find similar tools for .NET projects.
When googling for ".NET project metrics" you get many references to devMetrics from a company called Anticipating Minds. I will spare you the time: Anticipating Minds is no more doing business and devMetrics does not work with .NET framework 2.0 and above.
I have used two complementary tools which give simple but effective metrics: