@Override
    public long getNumberOfKeys() {
      return getRegion().keySet().size();
    }
Returns the number of keys in this index.
geode-core/src/main/java/org/apache/geode/cache/query/internal/index/PrimaryKeyIndex.java