Use pg_class to make count for page count faster.

Adds a custom paginator to use pg_class to get a estimated value for log count.

 This part of #38