Hearts are the number of times a level play can be attempted.

Each time you fail at a level, the number of hearts will decrease at a time.
The maximum number of hearts is 5, and a heart will be charged every 30 minutes.

If you don't want to wait until the heart is charged, you can watch an advertisement or buy it with 20 jewels.