Hi, Dilarus! Thanks for your post :)
It's actually the second: the number of times a hero can use spells daily is equal to half of its total hearts. So yeah, a hero with 4 hearts, can use 2 spells/day