Quoted By:
Protip: He will always pick a team that can counter the one you used in your twentieth battle (at least that's what's happened the 5 or so times I've ever battled him). The best way is to switch out one of your pokemon to something that can counter his anticipated team.
You should always switch someone out one of your pokemon at the end of a battle anyways.