All nails of both hands and feet: dam.
All nails of one complete hand or foot: dam.
Fewer than five nails: sadaqah.
Five distributed among different limbs: sadaqah according to Abu Hanifah and Abu Yusuf, but dam according to Muhammad.
Treat these as four distinct legal fact patterns. The numeral five alone does not settle the answer.