X = list()
Y = list()
D = list()
score = 0

n,d = map(int, input().split())
for i in range(n):
    x, y = map(int, input().split())
    X.append(x)
    Y.append(y)

for i in range(n):
    dis = (X[i]**2 + Y[i]**2)**0.5
    D.append(dis)

for i in range(n):
    if d >= D[i]:
        score += 1

print(score) X = list() X list() list Y = list() Y list() list D = list() D list() list score = 0 score 0 n,d = map(int, input().split()) n map(int, input().split()) map int input().split() ().split () input split d for i in range(n):
    x, y = map(int, input().split())
    X.append(x)
    Y.append(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 X.append(x) X.append X append x Y.append(y) Y.append Y append y for i in range(n):
    dis = (X[i]**2 + Y[i]**2)**0.5
    D.append(dis) i range(n) range n dis = (X[i]**2 + Y[i]**2)**0.5 dis (X[i]**2 + Y[i]**2)**0.5 X[i]**2 + Y[i]**2 X[i]**2 X[i] X i 2 Y[i]**2 Y[i] Y i 2 0.5 D.append(dis) D.append D append dis for i in range(n):
    if d >= D[i]:
        score += 1 i range(n) range n if d >= D[i]:
        score += 1 d >= D[i] d D[i] D i score += 1 score 1 print(score) print score D = list() list() D d = map(int, input().split()) map(int, input().split()) d y = map(int, input().split()) map(int, input().split()) y n,d = map(int, input().split()) map(int, input().split()) n score += 1 1 score Y = list() list() Y X = list() list() X x, y = map(int, input().split()) map(int, input().split()) x score = 0 0 score dis = (X[i]**2 + Y[i]**2)**0.5 (X[i]**2 + Y[i]**2)**0.5 dis
X = list()
Y = list()
D = list()
score = 0

n,d = map(int, input().split())
for i in range(n):
    x, y = map(int, input().split())
    X.append(x)
    Y.append(y)

for i in range(n):
    dis = (X[i]**2 + Y[i]**2)**0.5
    D.append(dis)

for i in range(n):
    if d >= D[i]:
        score += 1

print(score)