import math

in1 = list(map(int,input().split()))
Nin = in1[0]
Din = in1[1]

xy = [map(int, input().split()) for _ in range(Nin)]
x, y = [list(i) for i in zip(*xy)]

count=0

for i in range(Nin):
    dist = math.sqrt(x[i]**2 + y[i]**2)
    if dist <= Din:
        count += 1

print(count) import math math in1 = list(map(int,input().split())) in1 list(map(int,input().split())) list map(int,input().split()) map int input().split() ().split () input split Nin = in1[0] Nin in1[0] in1 0 Din = in1[1] Din in1[1] in1 1 map(int, input().split()) for _ in range(Nin) for _ in range(Nin) _ range(Nin) range Nin for _ in range(Nin) map(int, input().split()) map int input().split() ().split () input split xy = [map(int, input().split()) for _ in range(Nin)] xy [map(int, input().split()) for _ in range(Nin)] 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 count=0 count 0 for i in range(Nin):
    dist = math.sqrt(x[i]**2 + y[i]**2)
    if dist <= Din:
        count += 1 i range(Nin) range Nin dist = math.sqrt(x[i]**2 + y[i]**2) dist math.sqrt(x[i]**2 + y[i]**2) math.sqrt math sqrt x[i]**2 + y[i]**2 x[i]**2 x[i] x i 2 y[i]**2 y[i] y i 2 if dist <= Din:
        count += 1 dist <= Din dist Din count += 1 count 1 print(count) print count xy = [map(int, input().split()) for _ in range(Nin)] [map(int, input().split()) for _ in range(Nin)] xy in1 = list(map(int,input().split())) list(map(int,input().split())) in1 Nin = in1[0] in1[0] Nin x, y = [list(i) for i in zip(*xy)] [list(i) for i in zip(*xy)] x count += 1 1 count y = [list(i) for i in zip(*xy)] [list(i) for i in zip(*xy)] y count=0 0 count dist = math.sqrt(x[i]**2 + y[i]**2) math.sqrt(x[i]**2 + y[i]**2) dist Din = in1[1] in1[1] Din
import math

in1 = list(map(int,input().split()))
Nin = in1[0]
Din = in1[1]

xy = [map(int, input().split()) for _ in range(Nin)]
x, y = [list(i) for i in zip(*xy)]

count=0

for i in range(Nin):
    dist = math.sqrt(x[i]**2 + y[i]**2)
    if dist <= Din:
        count += 1

print(count)
