Elections in Chefland
Hazrat Ali
Election season has started in Chefland and the election commission wants to know the count of eligible voters.
There are NN people in Chefland where the age of the ithith person in AiAi.
Given that a person needs to be at least XX years old to vote, find the number of eligible voters.
Input Format
- The first line of input will contain a single integer TT, denoting the number of test cases.
- Each test case consists of multiple lines of input.
- The first line of each test case contains two space-separated integers NN and XX — the number of people in Chefland, and the minimum age required for a person to vote in Chefland.
- The next line contains NN space-separated integers, where the ithith integer denotes the age of the ithith person.
Output Format
For each test case, output on a new line, the number of eligible voters in Chefland.
Constraints
- 1≤T≤200
- 1≤N≤100
- 1≤Ai,X≤100
Sample 1:
4 4 3 5 3 1 2 3 2 1 3 4 4 2 2 1 2 4 5 6 1 2 3 4 5
2 2 3 0
Explanation:
Test case 11: The minimum age to vote in Chefland is 33 years. There are 22 people with age greater than equal to 33 and thus, there are 22 eligible voters.
Test case 22: The minimum age to vote in Chefland is 22 years. There are 22 people with age greater than equal to 22 and thus, there are 22 eligible voters.
Test case 33: The minimum age to vote in Chefland is 22 years. There are 33 people with age greater than equal to 22 and thus, there are 33 eligible voters.
Test case 44: The minimum age to vote in Chefland is 66 years. There are no people with age greater than equal to 66 and thus, there are no eligible voters.
Solution