There's no fixed number, though a threesome or a foursome usually goes by its own name. Not everyone has to be with everyone. At a typical orgy people pair off, join in, swap and watch, and some only watch. Today it often happens at a private party, a swingers club's playroom or an organized sex party, where hosts set rules about consent, condoms and phones. The more general term is group sex.
Where the word comes from
The word started out religious. Dictionary.com records it in English from 1580 to 1590, through Middle French orgie and Latin orgia from the Greek órgia, "secret rites," related to érgon, "work." In ancient Greece the orgia were the secret rituals of gods such as Demeter and Dionysus, the god of wine, and in later times they were known for wild dancing, singing and drinking. The sense of a wild party with sex among many people grew from there, and so did the figurative use, as in "an orgy of spending."
How common is it?
As a fantasy, very. In Justin Lehmiller's survey of more than 4,000 Americans for his book Tell Me What You Want, 74% had fantasized about an orgy, and more than a third named group sex as their favorite fantasy of all time. Acting on it is another matter. In a 2015 national survey of 2,021 American adults, 11.5% of men and 6.3% of women had ever had group sex. Among Lehmiller's participants whose favorite fantasy was group sex, only 8% of heterosexual women and 15% of heterosexual men had acted on it, and heterosexual women reported the least positive experiences.
Doing it safely
Consent is the core. Being at an orgy is not consent to anything: ask before you touch, take no for an answer, and stop the moment someone wants to. Go with people you trust, or to an event with clear rules and hosts who enforce them. Stay sober enough to consent and to notice when someone else can't.
More partners means more STI risk. Use a new condom for every act and every partner, as the CDC advises, cover shared toys with a fresh condom, and test regularly. Keep phones away: photos need everyone's yes. The guide to sex parties and play parties covers finding events and what to expect.