From what I understand , goldfish need about 10 gallons a piece - you should check out this site
http://www.kokosgoldfish.com/index.html , it is one of the best resources for goldfish I have ever seen. Please read up on "cycling" at that site before you decide to put your fish in a tank.