guava/src/com/google/common/collect/ForwardingMultiset.java
@Beta
  protected int standardCount(@Nullable Object object) {
    for (Entry<?> entry : this.entrySet()) {
      if (Objects.equal(entry.getElement(), object)) {
        return entry.getCount();
      }
    }
    return 0;
  }
@Beta
  protected int standardCount(@Nullable Object object) {
    for (Entry<?> entry : this.entrySet()) {
      if (Objects.equal(entry.getElement(), object)) {
        return entry.getCount();
      }
    }
    return 0;
  }
@ Beta protected int standardCount ( @ Nullable Object object ) { for ( Entry < ? > entry : this . entrySet ( ) ) { if ( Objects . equal ( entry . getElement ( ) , object ) ) { return entry . getCount ( ) ; } } return 0 ; }
A sensible, albeit inefficient, definition of {@link #count} in terms of {@link #entrySet}. If
you override {@link #entrySet}, you may wish to override {@link #count} to forward to this
implementation.

@since 7.0
A sensible albeit inefficient definition of { @link #count } in terms of { @link #entrySet } . If you override { @link #entrySet } you may wish to override { @link #count } to forward to this implementation .