There are 120 shrines in Breath of the Wild, each of which contains a spirit orb. You need four spirit orbs to upgrade either your maximum hearts or your maximum stamina. At most, you can have 30 hearts or three full bars of stamina, but not both at the same time. Maximizing one means sacrificing the other.