Hacker News new | ask | show | jobs
by orf 3585 days ago
Or just `names[name] += 1` if you're using a Counter.
1 comments

Which would of course be the optimal solution. I always forget about that object.