Make shards count configurable for map reduce