Reimu Hakurei is facing $$$n$$$ youkai. The $$$i$$$-th youkai has $$$a_i$$$ health, and Reimu's attack power is $$$x$$$.
While there are $$$k$$$ youkai on the field, Reimu may choose a non-empty proper subset $$$S$$$ of them — so $$$1 \le |S| \lt k$$$ — and attack. Every youkai in $$$S$$$ loses $$$x$$$ health. If a youkai's health becomes $$$0$$$ or less, it is defeated and removed from the field.
If at least one youkai is defeated by this attack, the attack costs $$$0$$$ spell cards. Otherwise, it costs $$$1$$$ spell card.
Reimu wants to leave exactly one youkai alive. Find the minimum total number of spell cards she must spend.
Each test contains multiple test cases. The first line contains the number of test cases $$$t$$$ ($$$1 \le t \le 10^4$$$). The description of the test cases follows.
The first line of each case contains two integers $$$n$$$ and $$$x$$$ ($$$2 \le n \le 10^5$$$, $$$1 \le x \le 10^9$$$) — the number of youkai and Reimu's attack power.
The second line of each case contains $$$n$$$ integers $$$a_1, a_2, \ldots, a_n$$$ ($$$1 \le a_i \le 10^9$$$) — the initial health of the youkai.
It is guaranteed that the sum of $$$n$$$ over all test cases does not exceed $$$10^5$$$.
For each test case, output a single integer — the minimum number of spell cards Reimu has to spend.
32 59 106 11 1 4 5 1 46 11 9 1 9 8 10
105
In the first test case, there are only two youkai, so the only valid non-empty proper subset is a single youkai. Reimu may choose the same youkai in two consecutive attacks: the first attack costs $$$1$$$ spell card, and the second one defeats this youkai and costs $$$0$$$ spell cards. Thus, the answer is $$$1$$$.
In the second test case, an optimal sequence of attacks is as follows (the remaining youkai are listed in arbitrary order).
Since every attack defeated at least one youkai, Reimu spends $$$0$$$ spell cards.