Be sure that MyCounter.java is in your CLASSPATH.
I'm trying to get the JavaScript example running... not the Java. It's the example at the very bottom of http://xml.apache.org/xalan-j/extensions.html. The counter functions are implemented in the script and MyCounter.java is not required, yes?
