core/src/main/java/com/orientechnologies/orient/core/db/document/ODatabaseDocumentAbstract.java
@Override
  public long countClusterElements(int[] iClusterIds, boolean countTombstones) {
    checkIfActive();
    String name;
    for (int iClusterId : iClusterIds) {
      name = getClusterNameById(iClusterId);
      checkSecurity(ORule.ResourceGeneric.CLUSTER, ORole.PERMISSION_READ, name);
    }

    return getStorage().count(iClusterIds, countTombstones);
  }
@Override
  public long countClusterElements(int[] iClusterIds, boolean countTombstones) {
    checkIfActive();
    String name;
    for (int iClusterId : iClusterIds) {
      name = getClusterNameById(iClusterId);
      checkSecurity(ORule.ResourceGeneric.CLUSTER, ORole.PERMISSION_READ, name);
    }

    return getStorage().count(iClusterIds, countTombstones);
  }
@ Override public long countClusterElements ( int [ ] iClusterIds , boolean countTombstones ) { checkIfActive ( ) ; String name ; for ( int iClusterId : iClusterIds ) { name = getClusterNameById ( iClusterId ) ; checkSecurity ( ORule . ResourceGeneric . CLUSTER , ORole . PERMISSION_READ , name ) ; } return getStorage ( ) . count ( iClusterIds , countTombstones ) ; }
{@inheritDoc}
{