Add num_of_shards statistic to percolate context

PR for #6037