Generating functions and counting | Hacker News Reader