Welcome to Smogon! Take a moment to read the Introduction to Smogon for a run-down on everything Smogon, and make sure you take some time to read the global rules.
Easy. Run will-o-wisp on rotom with an iapapa berry. Drop pain split as it's a trash move in general imo. Also, rain boosted hydro does a lot to mega pert. Rotom-W is literally the strongest counter to m-swampert.