There are buildings with heights placed in order from the left. The -th building from the left is called building .
Building is said to be central if it satisfies both of the following conditions.
If there is no building in the corresponding range, that condition is considered to be satisfied.
In the figure above, buildings , , , and , marked in blue, are the central buildings.
Find the number of central buildings.
The input is given in the following format.
For each test case, print the number of central buildings on a single line.
is the number of test cases.
Each test case is given in the following format.
is the number of buildings, and is the height of the -th building from the left.