docs: public double count() {
          T obj2 = ref.get();
          if (obj2 != null) {
              long prevLast = lastCount;
              lastCount = Math.max(countFunction.applyAsLong(obj2), 0);
              count.getCurrent().add(lastCount - prevLast);
          }
          return count.poll();
      }