n,d = map(int, input().split())
x = []
y = []
for i in range(n):
    a,b = map(int, input().split())
    x.append(a)
    y.append(b)
count = 0
for i in range(n):
    if (x[i]**2 + y[i]**2)**(1/ 2) <= d:
        count += 1
print(count) n,d = map(int, input().split()) n map(int, input().split()) map int input().split() ().split () input split d x = [] x [] y = [] y [] for i in range(n):
    a,b = map(int, input().split())
    x.append(a)
    y.append(b) i range(n) range n a,b = map(int, input().split()) a map(int, input().split()) map int input().split() ().split () input split b x.append(a) x.append x append a y.append(b) y.append y append b count = 0 count 0 for i in range(n):
    if (x[i]**2 + y[i]**2)**(1/ 2) <= d:
        count += 1 i range(n) range n if (x[i]**2 + y[i]**2)**(1/ 2) <= d:
        count += 1 (x[i]**2 + y[i]**2)**(1/ 2) <= d (x[i]**2 + y[i]**2)**(1/ 2) x[i]**2 + y[i]**2 x[i]**2 x[i] x i 2 y[i]**2 y[i] y i 2 1/ 2 1 2 d count += 1 count 1 print(count) print count n,d = map(int, input().split()) map(int, input().split()) n x = [] [] x count = 0 0 count a,b = map(int, input().split()) map(int, input().split()) a d = map(int, input().split()) map(int, input().split()) d count += 1 1 count b = map(int, input().split()) map(int, input().split()) b y = [] [] y
n,d = map(int, input().split())
x = []
y = []
for i in range(n):
    a,b = map(int, input().split())
    x.append(a)
    y.append(b)
count = 0
for i in range(n):
    if (x[i]**2 + y[i]**2)**(1/ 2) <= d:
        count += 1
print(count)