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