Why do the Spanish eat 12 grapes on New Year's Eve?

Why do the Spanish eat 12 grapes on New Year's Eve?