Let $(C_i)_{i \in \mathbb{Z}}$ be a chain complex of free abelian groups. Does the rank of the homology and cohomology groups of $(C_i)_{i \in \mathbb{Z}}$ always coincide, i.e. is $$\operatorname{rank}(H_i(C_*))=\operatorname{rank}(H^i(C_*))$$ for every integer i?
If every homology group $H_i(C_*)$ is finitely generated, we can use a combination of the universal coefficients theorem and the fundamental theorem for finitely generated abelian groups to show this fact. But is it also true in the case where the homology groups are not finitely generated?