Fix pagination count

The number of records in the system is the number of document_ids, not
the number of editions.
Merge pull request #195 from alphagov/fix-pagination-count

Fix pagination count