Morning light hits the rook towers of Chessfield as Dante unrolls the day's manifest of crates. The tally will decide the next shipment. Task: Print how many array elements are less than or equal to x. Input format: First line: n and x. Second line: n integers. Output format: Print the count of elements <= x. Constraints: 1 <= n <= 8024; 0 <= a[i],x <= 1000.
Example 1:
Example 2:
Example 3:
Constraints:
1 <= n <= 8024; 0 <= a[i],x <= 1000.
