Your question made me sit back and take an inventory in order to give you a reasonable answer. And here it is:
I have 42 USGI 30 round magazines - 24 are in good shape with new springs and followers, 18 are range queens (busted tabs, cracked feed lips etc). My 10 USGI 20 rounders are for my target rifle and only get loaded with handloads. So to answer your question about how many mags you need and what type, buy as many as you can afford and when you think you have enough, double that number. I prefer only USGI, they are plentiful, work with almost every AR weapon system, and spare parts are readily available.
I still have empty stripper clips and bandoleers so I must not have enough ammo (1.5 k already in stripper clips and bando's in the cans). Ammo is the same as magazines, buy as much as you can afford then buy more. Most of the guys around here agree that mil-spec Federal XM 193 or Winchester Q3131a is the best. However, you will have to shoot many different types out of your rifle to determine which type and brand it likes. Once you find that out, buy plenty.
And since someone already posted the AMMO Oracle link, I won't cover that.
Good luck and welcome to the Club. You have aquired a disease that cannot be cured. 12 step methods will not help. You can only appease the addiction, and it gets stronger and stronger the longer you have it. So smile like us, because we love it.