code: @Override
  	public boolean check(EmbeddedBrowser browser) {
  		if (condition.check(browser)) {
  			count.getAndIncrement();
  		}
  		return count.get() <= maxCount;
  	}
docs: Note: Check has a side effect (it increments a counter). Invoking it multiple times may
  result in a different answer.