3 ms·You could do gc=sum(1 for _ on lines if ...) or use Counterby makapuf 5y agoYou could do gc=sum(1 for _ on lines if ...) or use Counter