The organizers of the interval start cross country world championship made a serious mistake. Nowhere on the course can a runner pass the person in front. If a runner catches the person who started before them, the two have to stay together for the rest of the race.
That is no way to decide a world champion, so the organizers record only the times of the runners who cross the finish line with nobody right in front of them. The others rest and then run another race, and that race decides their times.
The risk in this setup is that far too many races may be needed. Given the length of the course and the speeds of the participants, find how many races have to be arranged.
Within one race the runners start one minute apart, in the order given in the input. In a later race the relative order of the runners is the same, and only their start times are adjusted, so the gap between two consecutive starts is still exactly one minute.
The first line contains the number of test cases T. Each test case begins with a line holding the number of participants N and the length of the course S in meters. The next line holds the speeds v1,v2,…,vN of the participants in start order, in meters per minute.
For each test case, print the number of races that have to be arranged, one per line.