I don't know for sure how many vehicles Toyota sold in the USA compared to GM but for 2010 but Toyota did sell in the USA 1,763,595 while GM was restructuring and the numbers for GM are not readily available to my knowledge for GM for the 2010 model year.
I do know that GM is much more diverse than Toyota and I do believe they employ a lot more people worldwide than Toyota dose and is one of the reasons that the Federal Government did what they did to keep GM from going under even if I do not think it was the correct thing to do especially the way that the FED went about doing it.
Only time will tell if it was the correct thing to do or if the Fed will have to do a bailout again like they did with Chrysler in the past.