Best way to count distinct indexed things in PostgreSQL | Hacker News Reader