Fix search shards count method when targeting concrete and routing-aliased indices
Added test for #3268 and comments to test for #2682