public int numberOfOwningShards(){
  int count=0;
  for (  ShardRouting shardEntry : this) {
    if (shardEntry.state() != ShardRoutingState.RELOCATING) {
      count++;
    }
  }
  return count;
}

public int numberOfOwningShards ( ) { int count = 0 ; for ( ShardRouting shardEntry : this ) { if ( shardEntry . state ( ) != ShardRoutingState . RELOCATING ) { count ++ ; } } return count ; }
the number of shards on this node that will not be eventually relocated .
