B - Roller Coaster Editorial /

Time Limit: 2 sec / Memory Limit: 1024 MB

配点 : 200

問題文

高橋君の仲間たちは N 人で遊園地に遊びにいきました。

遊園地の一番人気のジェットコースターに乗るためには、身長が K cm以上必要です。

高橋君の i 番目の仲間の身長は h_i cm です。

高橋君の仲間たちのうち、一番人気のジェットコースターに乗ることができる人の数を求めてください。

制約

  • 1 \le N \le 10^5
  • 1 \le K \le 500
  • 1 \le h_i \le 500
  • 入力はすべて整数

入力

入力は以下の形式で標準入力から与えられる。

N K
h_1 h_2 \ldots h_N

出力

高橋君の仲間たちのうち、一番人気のジェットコースターに乗ることのできる人の数を出力してください。


入力例 1

4 150
150 140 100 200

出力例 1

2

一番人気のジェットコースターに乗ることができるのは、1 番目の仲間と 4 番目の仲間の 2 人です。


入力例 2

1 500
499

出力例 2

0

入力例 3

5 1
100 200 300 400 500

出力例 3

5

Score : 200 points

Problem Statement

N friends of Takahashi has come to a theme park.

To ride the most popular roller coaster in the park, you must be at least K centimeters tall.

The i-th friend is h_i centimeters tall.

How many of the Takahashi's friends can ride the roller coaster?

Constraints

  • 1 \le N \le 10^5
  • 1 \le K \le 500
  • 1 \le h_i \le 500
  • All values in input are integers.

Input

Input is given from Standard Input in the following format:

N K
h_1 h_2 \ldots h_N

Output

Print the number of people among the Takahashi's friends who can ride the roller coaster.


Sample Input 1

4 150
150 140 100 200

Sample Output 1

2

Two of them can ride the roller coaster: the first and fourth friends.


Sample Input 2

1 500
499

Sample Output 2

0

Sample Input 3

5 1
100 200 300 400 500

Sample Output 3

5