Fast Counting with PostgreSQL and Haskell | Hacker News