Depends what you keep with them. I have kept 25 in a 5 gallon with nothing else but snails. They will however produce waste the same as fish, so be careful. Mine were kept as food so if one died, I just promoted it to the puffer tank.
If you want to keep them, stick with 5, 10 is possible depending on fish.
Jon