n,d = map(int,input().split())
l=[]
for _ in range(n):
    x,y=map(int,input().split())
    l.append(((x**2)+(y**2))**(0.5))
l.sort()
c=0
for i in l:
    if i>d:
        break
    else:
        c+=1
print(c) n,d = map(int,input().split()) n map(int,input().split()) map int input().split() ().split () input split d l=[] l [] for _ in range(n):
    x,y=map(int,input().split())
    l.append(((x**2)+(y**2))**(0.5)) _ range(n) range n x,y=map(int,input().split()) x map(int,input().split()) map int input().split() ().split () input split y l.append(((x**2)+(y**2))**(0.5)) l.append l append ((x**2)+(y**2))**(0.5) (x**2)+(y**2) x**2 x 2 y**2 y 2 0.5 l.sort() l.sort l sort c=0 c 0 for i in l:
    if i>d:
        break
    else:
        c+=1 i l if i>d:
        break
    else:
        c+=1 i>d i d break c+=1 c 1 print(c) print c c+=1 1 c c=0 0 c l=[] [] l x,y=map(int,input().split()) map(int,input().split()) x y=map(int,input().split()) map(int,input().split()) y d = map(int,input().split()) map(int,input().split()) d n,d = map(int,input().split()) map(int,input().split()) n
n,d = map(int,input().split())
l=[]
for _ in range(n):
    x,y=map(int,input().split())
    l.append(((x**2)+(y**2))**(0.5))
l.sort()
c=0
for i in l:
    if i>d:
        break
    else:
        c+=1
print(c)