In linux:
find -name "*.jsp" | wc -l
Similarly for "*.xml" and "*.class" files.
In Windows, you can install the cygwin unix emulator and issue the above commands in a cygwin shell, but that's a significant task. You might just want to write a small
java app that uses the java.io.File list() method to run the directory tree scanning for the files of interest and printing the stats.
The secret of how to be miserable is to constantly expect things are going to happen the way that they are "supposed" to happen.
You can have faith, which carries the understanding that you may be disappointed. Then there's being a willfully-blind idiot, which virtually guarantees it.