#K94867. Count Numbers Greater Than X

    ID: 38737 Type: Default 1000ms 256MiB

Count Numbers Greater Than X

Count Numbers Greater Than X

You are given an array of n integers and a number X. Your task is to count how many elements in the array are strictly greater than X.

Formally, given an array \(a = [a_1, a_2, \dots, a_n]\) and a number \(X\), you need to compute the value of \[ \text{count} = |\{ i \mid 1 \leq i \leq n \text{ and } a_i > X \}| \]

Input is provided via standard input and output should be printed to standard output.

inputFormat

The first line of input contains an integer n which denotes the number of elements in the array.

The second line contains n space-separated integers representing the elements of the array.

The third line contains the integer X.

outputFormat

Output a single integer: the count of numbers in the array that are greater than X.

## sample
5
1 2 3 4 5
3
2