this calculation looks wrong. to get the count of replicated shard, one must query for 'secondary' shards. then use (numReplicas * numConfigured) - numSecondaryShards