n, t = map(int, input().split()) a = list(map(int, input().split())) ans = 0 for i in range(n): if t>=a[i]: ans = ans+1 print(ans)