Fix Count command in a sharded environment