n,d=map(int, input().split())
xy = [map(int, input().split()) for _ in range(n)]
yx= set(xy)
xy=list(yx)
x, y = [list(i) for i in zip(*xy)]
d2=d*d
count=0
for i in range(n):
    xi=x[i]
    yi=y[i]
    if xi*xi+yi*yi<=d2:
        count+=1

print(count) n,d=map(int, input().split()) n map(int, input().split()) map int input().split() ().split () input split d map(int, input().split()) for _ in range(n) for _ in range(n) _ range(n) range n for _ in range(n) map(int, input().split()) map int input().split() ().split () input split xy = [map(int, input().split()) for _ in range(n)] xy [map(int, input().split()) for _ in range(n)] yx= set(xy) yx set(xy) set xy xy=list(yx) xy list(yx) list yx list(i) for i in zip(*xy) for i in zip(*xy) i zip(*xy) zip *xy xy for i in zip(*xy) list(i) list i x, y = [list(i) for i in zip(*xy)] x [list(i) for i in zip(*xy)] y d2=d*d d2 d*d d d count=0 count 0 for i in range(n):
    xi=x[i]
    yi=y[i]
    if xi*xi+yi*yi<=d2:
        count+=1 i range(n) range n xi=x[i] xi x[i] x i yi=y[i] yi y[i] y i if xi*xi+yi*yi<=d2:
        count+=1 xi*xi+yi*yi<=d2 xi*xi+yi*yi xi*xi xi xi yi*yi yi yi d2 count+=1 count 1 print(count) print count n,d=map(int, input().split()) map(int, input().split()) n xy=list(yx) list(yx) xy yi=y[i] y[i] yi y = [list(i) for i in zip(*xy)] [list(i) for i in zip(*xy)] y d=map(int, input().split()) map(int, input().split()) d count+=1 1 count xi=x[i] x[i] xi count=0 0 count x, y = [list(i) for i in zip(*xy)] [list(i) for i in zip(*xy)] x d2=d*d d*d d2 xy = [map(int, input().split()) for _ in range(n)] [map(int, input().split()) for _ in range(n)] xy yx= set(xy) set(xy) yx
n,d=map(int, input().split())
xy = [map(int, input().split()) for _ in range(n)]
yx= set(xy)
xy=list(yx)
x, y = [list(i) for i in zip(*xy)]
d2=d*d
count=0
for i in range(n):
    xi=x[i]
    yi=y[i]
    if xi*xi+yi*yi<=d2:
        count+=1

print(count)