N,D = map(int,input().split())
xy = []
for i in range(N):
    x,y = map(int,input().split())
    xy.append([x,y])
ans = 0
for i in range(N):
    x = xy[i][0]
    y = xy[i][1]
    if(D*D >= (x*x + y*y)):
        ans+=1
print(ans) N,D = map(int,input().split()) N map(int,input().split()) map int input().split() ().split () input split D xy = [] xy [] for i in range(N):
    x,y = map(int,input().split())
    xy.append([x,y]) i range(N) range N x,y = map(int,input().split()) x map(int,input().split()) map int input().split() ().split () input split y xy.append([x,y]) xy.append xy append [x,y] x y ans = 0 ans 0 for i in range(N):
    x = xy[i][0]
    y = xy[i][1]
    if(D*D >= (x*x + y*y)):
        ans+=1 i range(N) range N x = xy[i][0] x xy[i][0] [i] xy i 0 y = xy[i][1] y xy[i][1] [i] xy i 1 if(D*D >= (x*x + y*y)):
        ans+=1 D*D >= (x*x + y*y) D*D D D x*x + y*y x*x x x y*y y y ans+=1 ans 1 print(ans) print ans y = map(int,input().split()) map(int,input().split()) y xy = [] [] xy N,D = map(int,input().split()) map(int,input().split()) N x,y = map(int,input().split()) map(int,input().split()) x x = xy[i][0] xy[i][0] x D = map(int,input().split()) map(int,input().split()) D ans+=1 1 ans ans = 0 0 ans y = xy[i][1] xy[i][1] y
N,D = map(int,input().split())
xy = []
for i in range(N):
    x,y = map(int,input().split())
    xy.append([x,y])
ans = 0
for i in range(N):
    x = xy[i][0]
    y = xy[i][1]
    if(D*D >= (x*x + y*y)):
        ans+=1
print(ans)