I often use SourceMonitor to have some statistics about my code: it gives you not only a count of effective source lines and comments but some indicators on code complexity and location of the most "complicated" or nested functions int he code.
I suppose some of those informations can be easily added to the IDE.