Can you add a call to `assertSearchResponse` to make sure all shards were successful? This will help debug failures of this test and make sure that the count was not wrong because of a shard failure.