n,d = map(int,input().split())
count = 0
for i in range(n):
	x,y = map(float,input().split())
	if(d*d >= x*x + y*y):
		count+=1
print(count) n,d = map(int,input().split()) n map(int,input().split()) map int input().split() ().split () input split d count = 0 count 0 for i in range(n):
	x,y = map(float,input().split())
	if(d*d >= x*x + y*y):
		count+=1 i range(n) range n x,y = map(float,input().split()) x map(float,input().split()) map float input().split() ().split () input split y if(d*d >= x*x + y*y):
		count+=1 d*d >= x*x + y*y d*d d d x*x + y*y x*x x x y*y y y count+=1 count 1 print(count) print count count+=1 1 count d = map(int,input().split()) map(int,input().split()) d n,d = map(int,input().split()) map(int,input().split()) n x,y = map(float,input().split()) map(float,input().split()) x y = map(float,input().split()) map(float,input().split()) y count = 0 0 count
n,d = map(int,input().split())
count = 0
for i in range(n):
	x,y = map(float,input().split())
	if(d*d >= x*x + y*y):
		count+=1
print(count)