I have six fish in my 60 and I think that's pushing the limit. Overstocking is a huge beginner mistake and can lead to all sorts of problems as the tank matures.
I had 6 fish in a 40 breeder. And my tank was fine.
But max in a 30 gallon I would put is 4