An invariant for homogeneous spaces of compact quantum groups