\displaystyle b_1(H) = \dim H^1(H, \mathbb{Q}) = \dim \text{Hom}(H, \mathbb{Q})