The fewer the better for most stuff a med student or resident will be involved in - 5 or 6 isn't bad. Sometimes you see small retrospective reviews or case reports with a dozen authors and it is clear they are loading the boat. On the other hand, big RCTs or big basic science papers can have dozens of authors and still be perfectly legit.