In Pamplona, where the bulls run, a scientist studies the physics of crowds.