use _all_docs.total_rows insrtead of db.doc_count & update_seq

based on changes https://github.com/couchbase/sync_gateway/commit/1da4ee46a91c4cad15074233fcdd7cfd4603ee63