Add computation of the popularity with hearts