CouchDbRepositoryBase proper counting with StatusMask