Use pg_class to make count for page count faster.
Merge pull request #39 from vbabiy/speed-up-log-page

Use pg_class to make count for page count faster.