There is no fixed number. Dance groups range from duos/trios to dozens or more. Size depends entirely on the choreographer's vision, dance style, and dancer availability.
A contemporary piece might use 3-6 dancers; a classical ballet corps de ballet can number 20-30; a Bollywood production might field 50+. The "right" size serves the choreography, not a rule.