I have been working out the math for maximum undead from a RAW necromancer straight out of the PHB. The spell castings of Animate Dead below are considering the undead are already animated and the necromancer is just reasserting control.
At 20th Level:
3rd x 3 animate undead (4 each) = 12...