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