If you’re a beginner, you only need 1.
That’s right. You ought to start with just one fish species. In fact, you better start with just one fish to be on the safe side. It’s a matter of training yourself for your responsibilities. By limiting yourself to just a single fish, you limit the risk if you make a mistake, such as forgetting to feed the fish or neglecting to clean the water.
Of course later on, you’ll be tempted to add more fish.
For freshwater tanks, the basic rule of thumb (though there are exceptions) for the maximum number of fish is 1 inch of fish for every gallon of water. That’s for a rectangular aquarium. If the shape of the aquarium is irregular, then it’s 1 inch of fish (you measure without including the tail) for every square foot of the aquarium’s surface area.
For a new tank, start with 25% capacity at the most. Then wait 3 weeks to add more, but limit your additions to doubling your present number of fish. You ought to stop at 90% capacity, since you have to allow for fish growth.
For a saltwater tank, the rule of thumb is 3 inches of fish for every square foot of the surface area. Start with 25% capacity, and then wait 6 weeks to test the water for nitrite and ammonia. If both tests read zero, then you can add up to 50% of the fish in the tank. So if you already have 6 inches of fish, you can add up to 3 inches more.