code: public long count(final Bson filter, final RemoteCountOptions options) {
      return operations.count(filter, options).execute(service);
    }
docs: Counts the number of documents in the collection according to the given options.
  
  @param filter  the query filter
  @param options the options describing the count
  @return the number of documents in the collection