N, D = map(int, input().split())
num = [input().split() for _ in range(N)]
 
X = []
Y = []
count = 0
 
for n in num:
    X.append(int(n[0]))
    Y.append(int(n[1]))
 
for x, y in  zip(X, Y):
    dist = x**2 + y**2
    if dist <= D**2:
        count += 1
 
print(count) N, D = map(int, input().split()) N map(int, input().split()) map int input().split() ().split () input split D input().split() for _ in range(N) for _ in range(N) _ range(N) range N for _ in range(N) input().split() ().split () input split num = [input().split() for _ in range(N)] num [input().split() for _ in range(N)] X = [] X [] Y = [] Y [] count = 0 count 0 for n in num:
    X.append(int(n[0]))
    Y.append(int(n[1]))
  n num X.append(int(n[0])) X.append X append int(n[0]) int n[0] n 0 Y.append(int(n[1])) Y.append Y append int(n[1]) int n[1] n 1 for x, y in  zip(X, Y):
    dist = x**2 + y**2
    if dist <= D**2:
        count += 1
  x y zip(X, Y) zip X Y dist = x**2 + y**2 dist x**2 + y**2 x**2 x 2 y**2 y 2 if dist <= D**2:
        count += 1
  dist <= D**2 dist D**2 D 2 count += 1 count 1 print(count) print count D = map(int, input().split()) map(int, input().split()) D N, D = map(int, input().split()) map(int, input().split()) N count = 0 0 count Y = [] [] Y num = [input().split() for _ in range(N)] [input().split() for _ in range(N)] num count += 1 1 count dist = x**2 + y**2 x**2 + y**2 dist X = [] [] X
N, D = map(int, input().split())
num = [input().split() for _ in range(N)]
 
X = []
Y = []
count = 0
 
for n in num:
    X.append(int(n[0]))
    Y.append(int(n[1]))
 
for x, y in  zip(X, Y):
    dist = x**2 + y**2
    if dist <= D**2:
        count += 1
 
print(count)