It mostly depends on gender ratios and wether you want a mixed gender group or all-male group(all female ones won't prevent you from having fry as the females can store sperm in them for up to 7 pregnancys so only need to be in contact with one male once in their life to produce fry) but all-male groups tend to have more issues and need to be stocked more gradually and carefully.
If you want a mixed gender group you will need 2-3females per male minimum to avoid over-harrassment from the male directed to one female and you need to add and extra female for every male you add i.e 2males 7females(but your tank doesn't have the space for this many anyways).
Also if you are only choosing guppys from your own stock it is not advised to have brother ans sister guppys together as this will lead to inbreeding and this can have many bad consequences throughout the offsprings lives, so if you are only choosing females from your group and want a male, buy a male guppy from your lfs that is in no way related to them etc.
For a 10gal tank you could have a max of 4females and 1male which would also be a good ratio of genders too but this would only be if the tank was cycled and had good filtration although with this stock it wouldn't leave much space for fry if any. Alternatively you could just have 5males.
Remember whatever you do, stock slowly and gradually so everyone has time to adjust to the tank and sort out pecking orders as guppys are very sociable fish and unresponsable stocking can lead to the group having issues- if you are going for a mixed gender group, i suggest you add 2females to start off with, then a male, and then another female and after a month or 2, add the last female.
I also suggest you do a fishless cycle for the tank as nitrites and ammonia can cause fry and birthing/pregnancy difficultys for the female guppys and since they are almost pregnant 24/7, a cycle using fish isn't advised.