Anywhere from one to several hundred, and the spread is enormous.
At the small end, Nicklas Nygren's freeware title Knytt Stories was made by fifteen people or fewer, not counting the community-made levels. At the other extreme, a Nintendo release like WarioWare: Smooth Moves on Wii credits something in the region of 167 partners.
The gap reflects how different the two kinds of project are. A small indie game can lean on a handful of generalists and off-the-shelf tools, while a first-party console title needs specialists across art, animation, sound, programming, design, testing and production — and the credits roll reflects every one of them.