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