Kraabi, welcome to TFF.
Now, first thing...
never rely on what staff in a pet store tell you unless you know the person is knowledgeable in fish. Most staff, especially those in chain stores, are not. Always research ahead, and today the best way is to ask on a forum like TFF. There are reliable web sites, and many totally unreliable sites. Anyone can start a website and be an "expert," but on a good forum like TFF you have peer review of what each of us posts and that is important so erroneous information is weeded out.
The safe minimum sized tank for platies (4 or 5) is a standard 20 gallon, measuring 24 by 12 by 12 inches (60 by 30 by 30 cm). You should use this as you basis.
Second, a 10 gallon is not sufficient space for platies, but you can manage this; three in a long 10 gallon (meaning it is 24 inches or 60 cm in length) is workable, but not more. Someone like Colin who has considerable experience or myself can "overstock" tanks somewhat because we know the ramifications and can see trouble almost before it happens. But it is always safer to "go with the flow" just in case; an emergency can occur without warning and when you push the biological envelope too far to begin with, you may not always be able to resolve things before it is too late.
Third, males only. There is absolutely no space in a 20g for a female livebearer. Fry will be produced monthly and not all will get eaten. And never assume any store will actually be willing to take all the fry...they will not in most cases. Stores will say anything to sell you fish.