Remove trailing newline
Compile every time.  Pass args to java.
Move main code into a main method
Move main code into a main method
Print counts of loaded regexes. Print total count.