Short answer
There is no single number, but most keepers start small. A few guppies in a 10-gallon tank is a common starting point. Guppies breed quickly, so the practical limit is often how many young fish you can house and feed, not how many adults the tank can technically hold.
Plan for breeding
Guppies are livebearers. A mature female can give birth roughly once a month. She can also store sperm, so a single mating may produce several broods. Adults often eat their young, so a mixed tank needs cover such as dense plants or a breeding box if you want fry to survive. If you do not want babies at all, keep a single-sex group.
Sex ratio
Most guides suggest one male for every two or three females in a mixed group. Males court females constantly, and too many males for the number of females means nonstop courtship that stresses them. Some keepers go further and keep more females than that.
How many guppies fit
Rules of thumb vary. Some suggest roughly one gallon of water per additional adult, while others suggest closer to two gallons per extra fish. A 10-gallon tank is a common size for a small mixed group with more females than males. For more on the basics of tank size for a small group, see how many fish in 10 gallon tank.
Choose a filter that cycles the water well without creating a strong current. Guppies generally do best with gentle to moderate flow.
Water and temperature
Guppies are usually kept around 72 to 82°F (22 to 28°C). They tolerate a range of pH, but they do best with stable water. For a broader look at pH, see what ph should freshwater fish tank be.
Mollies in the same tank
Mollies are related livebearers, but they often need harder, more alkaline water and a bit more warmth than guppies. Some are sold as tolerant of brackish conditions. That makes them a compromise partner in a soft-water guppy tank. Before mixing them, check what fish need hard water and whether your tap water suits both.
Tankmates
Peaceful bottom and mid-level fish such as corydoras suit a guppy tank well. Avoid fin nippers. Guppies have flowing fins that are easily damaged, so keep barbs such as tiger barbs away from them. For the details, see are tiger barbs good community fish.
Bottom line
Start with a small group, aim for more females than males, and plan for fry if you keep both sexes. Breeding rates, more than the number you buy, set the real limit.