#NEWLINE# @ classmethod #NEWLINE# def _count_roots( cls , roots ) : #NEWLINE# #INDENT# 'Count the number of real or complex roots with multiplicities.' #NEWLINE# return sum ( [ k for ( _ , _ , k ) in roots ] )