A generalization of the formula of Fine and Rao for the ranks of the intersection homology groups of a complex algebraic variety is given. The proof uses geometric properties of intersection homology and mixed Hodge theory. The middle-perversity intersection homology with integral coefficients of a compact complex n-dimensional algebraic variety X with isolated singularities is well known to be...