What is the maximum number of hearts you can get?

In Zelda: A Link to the Past, it is possible to get additional hearts by completing dungeons (which gives you a full heart), by finding very rare full hearts out in the game world, and by collecting pieces of heart in order to create a new, full heart.

What is the maximum number of hearts you can get?


Solution 1:

There are 24 heart pieces, yielding 20 max hearts total.

Their locations are shown in detail here.