Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Or just `names[name] += 1` if you're using a Counter.


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




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: