Update MagicItemGen.java

Added the count flag to run the generator multiple times automatically. Cleaned up the dash breaks between outputs to conform to the count flag.