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