Mr. Wow is playing a computer game. There are $$$n$$$ monsters arranged from left to right and numbered $$$1, 2, ...., n$$$. The $$$i$$$-th monster from the left has $$$h_{i}$$$ health points. A monster will be dead if it's health points become less than or equal to $$$0$$$.
To kill the monsters, Mr. Wow can use the spells. A single spell means :
What is the maximum number of spells Mr. Wow can use before the game ends?
Each test contains multiple test cases. The first line contains the number of test cases $$$t$$$ ($$$1 \le t \le 1000$$$). The description of the test cases follows.
The first line of each test case contains a single integer $$$n$$$ ($$$1 \le n \le 3 \cdot 10^5$$$) — the number of monsters.
The second line of each test case contains $$$n$$$ space-separated integers $$$h_{i}$$$ ($$$1 \le h_{i} \le 10^9$$$).
It is guaranteed that the sum of $$$n$$$ over all test cases doesn't exceed $$$3 \cdot 10^5$$$.
For each test case, print a single integer — the maximum number of spells Mr. Wow can use before the game ends.
531 2 333 2 132 1 442 3 8 447 17 8 11
1 3 3 7 23
In the $$$1$$$-st test case, for any value of $$$x$$$, the game will end after using $$$1$$$ spell.
In the $$$3$$$-rd test case, we can do the following $$$3$$$ operations:
It can be proven $$$3$$$ reaches the maximum.