I had 5 in my 260 litre for almost a year. 1 died of an unknown cause and then the dominant one killed and ate the remaining 3. Leaving me with one of the meanest piranhas I'd come across. He had a real bad attitude. He used to get on fine with the others but when he got to around the 6 inch mark he just went nuts and would not tolerate anything that moved in HIS tank.I used to have no trouble doing a weekly (or even 2 weekly) sand vac but after he went nuts I couldn't put my hand in the tank. He kept going for my hands. So I had to attach my syphon to a long metal bar so I didn't have to put my hands in the tank.
I would say that 5 would be the maximum for a 300 litre. They are VERY messy fish so extra filtration is needed. Around 6-8 times your tank volume in hourly turnover. So around 2000-2500 lph turnover. Please remember that as an example if you were to have 2 tetratec ex1200's as I have the real life turnover goes from 1200 lph per filter to around 940lph per filter. Giving you 1880 combined.
Low lighting is required as they are very shy and skittish fish that will scare easily when you put the lights on if they are too bright. If so then floating plants will be a good idea
Many people may tell you that piranhas are boring and have no personality which to be honest is true in most cases but I absolutely loved mine and may even get some more for my 450 litre once I get my 8 foot 800 litre.
When they are young they will eat flake but then as they get older they need bigger things. I used to feed mine frozen and live bloodworm, frozen shrimp, krill, earthworms and frozen mice.
All I will say is if you want a fish that will always roam around the tank and entertain you then piranhas are not for you. Also a lot of people only buy piranhas because of their rep as killers. This isnt the case with them though. In fact they will spent most of their time in one place or hid away and then strike at feeding time. The "thrill" of seeing them attack soon dies down. You really have to love piranhas to understand them and enjoy them