nd=input().split()
n=int(nd[0])
d=int(nd[1])
count=0
z=d*d
for i in range(0,n):
	xy=input().split()
	x=int(xy[0])
	y=int(xy[1])
	if(x*x+y*y<=z):
		count+=1
print(count) nd=input().split() nd input().split() ().split () input split n=int(nd[0]) n int(nd[0]) int nd[0] nd 0 d=int(nd[1]) d int(nd[1]) int nd[1] nd 1 count=0 count 0 z=d*d z d*d d d for i in range(0,n):
	xy=input().split()
	x=int(xy[0])
	y=int(xy[1])
	if(x*x+y*y<=z):
		count+=1 i range(0,n) range 0 n xy=input().split() xy input().split() ().split () input split x=int(xy[0]) x int(xy[0]) int xy[0] xy 0 y=int(xy[1]) y int(xy[1]) int xy[1] xy 1 if(x*x+y*y<=z):
		count+=1 x*x+y*y<=z x*x+y*y x*x x x y*y y y z count+=1 count 1 print(count) print count y=int(xy[1]) int(xy[1]) y nd=input().split() input().split() nd x=int(xy[0]) int(xy[0]) x z=d*d d*d z d=int(nd[1]) int(nd[1]) d count=0 0 count n=int(nd[0]) int(nd[0]) n xy=input().split() input().split() xy count+=1 1 count
nd=input().split()
n=int(nd[0])
d=int(nd[1])
count=0
z=d*d
for i in range(0,n):
	xy=input().split()
	x=int(xy[0])
	y=int(xy[1])
	if(x*x+y*y<=z):
		count+=1
print(count)
