If it is the 4 cylinder it is 3.7 (4) qts for the drain and refill. It is 5-6 qts for the pan drop and filter/gasket change. You did the right thing, even though maybe more $$, in the end a transmission costs way more.
The interesting thing is the same transmission in the 05 Models call for Type IV ATF, then Toyota or whoever makes the transmissions for them, upgraded the fluid to WS. When I buy my ATF from the dealer, I have to take a picture of my dipstick with me, otherwise the counter person thinks I am being stupid and saving pennies buying the wrong ATF.