class CassandraMailRepositoryCountDAO {

    public Mono<Long> getCount(MailRepositoryUrl url) {
        return executor.executeSingleRowOptional(select.bind()
                .setString(REPOSITORY_NAME, url.asString()))
            .map(this::toCount);
    }

    @Inject public  CassandraMailRepositoryCountDAO(Session session);

}