Core Rulebook
The swarm rules allow a GM to take any creature and have a group of six to ten of them attack en masse as a single creature that is two levels higher, inflicting double the original creature's normal damage. So twenty level 2 city guards might attack as three level 4 mobs.