@classmethod
    def _count_roots(cls, roots):
        return sum([k for _, _, k in roots])
Count the number of real or complex roots with multiplicities.
dataset/ETHPy150Open sympy/sympy/sympy/polys/rootoftools.py/ComplexRootOf._count_roots