Complete issue #161

- Port fix for issue couchbase/couchbase-lite-java-core#100.
- Taking # of missing revisions into account when updating ChangesCount.