Hacker News new | ask | show | jobs
by makapuf 1727 days ago
You could do gc=sum(1 for _ on lines if ...) or use Counter