Wow I can't believe no one has answered you yet...I would say 12 at least? I'm planning on at least 8 for my 55 gallon with 36 rasboras, 12 swordtails, and 8 cories.
A tank of RTB's/Rainbows is a tricky thing.....they can work and be a beautiful site...But its not a sure thing....I would get atleast 8-10 and make sure you have at least two hiding spots per fish....Once they are use to the enviroment they will spend most of there day looking for food...I've seen a school of 12 and it was great.....But...there can be a weak RTB that will be singled out and stressed...I would remove and return it as soon as you see any over aggression....I've never had the chance to keep a large group of them so dont take my word as gold