public long getCount() {
        return delegate.countDocuments();
    }
@Test
    void getCount() {
        final var collection = jacksonCollection("simple", Simple.class);
        assertThat(collection.count()).isEqualTo(0);
        collection.insert(new Simple(null, "foo"));
        assertThat(collection.count()).isEqualTo(1);
        collection.insert(new Simple(null, "bar"));
        assertThat(collection.count()).isEqualTo(2);
        assertThat(collection.count((DBObject) new BasicDBObject(Map.of("name", Map.of("$in", List.of("foo", "bar"))))))
                .isEqualTo(2);
        assertThat(collection.count((DBObject) new BasicDBObject("name", "bar"))).isOne();
        collection.remove(DBQuery.empty());
        assertThat(collection.count()).isEqualTo(0);
    }