Leeches have 32 segmental ganglia (clusters of nerve cells) along their body, which are often referred to as 32 brains. Each segment has its own neural center that can function independently. This distributed nervous system allows leeches to coordinate movement and respond to stimuli across their body segments.