x,y = map(int,input().split())
y =y**2
count=0
for i in range(x):
    a,b = map(int,input().split())	
    if a**2+b**2 <=y:
        count+=1;
print(count) x,y = map(int,input().split()) x map(int,input().split()) map int input().split() ().split () input split y y =y**2 y y**2 y 2 count=0 count 0 for i in range(x):
    a,b = map(int,input().split())	
    if a**2+b**2 <=y:
        count+=1; i range(x) range x a,b = map(int,input().split()) a map(int,input().split()) map int input().split() ().split () input split b if a**2+b**2 <=y:
        count+=1; a**2+b**2 <=y a**2+b**2 a**2 a 2 b**2 b 2 y count+=1 count 1 print(count) print count count=0 0 count a,b = map(int,input().split()) map(int,input().split()) a count+=1 1 count x,y = map(int,input().split()) map(int,input().split()) x y =y**2 y**2 y b = map(int,input().split()) map(int,input().split()) b y = map(int,input().split()) map(int,input().split()) y
x,y = map(int,input().split())
y =y**2
count=0
for i in range(x):
    a,b = map(int,input().split())	
    if a**2+b**2 <=y:
        count+=1;
print(count)