public CounterAssert hasCount(Condition<? super Double> condition) {
    isNotNull();
    double count = actual.count();
    if (!condition.matches(count)) {
      failWithMessage("Expected counter to have count <%s> but count was <%s>", condition, count);
    }
    return myself;
  }
Verifies that the counter has a count that satisfies the given condition.

@param condition the criteria against which to evaluate the counter's count
@return this assertion object
@throws AssertionError if the counter is {@code null}
@throws AssertionError if the condition rejects the counter's count
geode-junit/src/main/java/org/apache/geode/test/micrometer/CounterAssert.java