Google for "java static source analysis" or words like that. "static" means it reads your source code as opposed to tools that watch a running system.
There are a number of open source and commercial tools that do the kind of counts you mention, plus a whole world of good inforamation about package and class dependencies. JDepends and JTest do dependency analysis based on Robert Martin's metrics for what is "good".
A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
excellent! Thanks Mark -- I knew some lovely person out there had to have created a plugin for IntelliJ. That thing has tons of metrics.
And no Lasse, I was a bad Sheriff and haven't yet read your article. I'll check it out! I'm doing a research project at school about generating system tests and figuring out how well they cover the code.
Thanks to the other suggestions too. Its much appreciated. [ September 29, 2004: Message edited by: Jessica Sant ]
subject: utitility to find code metrics? (lines of code, etc)