Is there a simple way to count how many functions, methods and/or classes there are in a library? And how many are documented? Maybe through Doxygen output?

When I try to Google a solution all I get is algorithms to count things... :)