import math

N,D =[int(x) for x in input().split()]

X = []
Y = []

for i in range(N):
    x,y = [int(x) for x in input().split()]
    X.append(x)
    Y.append(y)

ans = 0

for i in range(N):
    r = math.sqrt(X[i] ** 2 + Y[i] ** 2)
    if r <= D:
        ans += 1

print(ans) import math math int(x) for x in input().split() for x in input().split() x input().split() ().split () input split for x in input().split() int(x) int x N,D =[int(x) for x in input().split()] N [int(x) for x in input().split()] D X = [] X [] Y = [] Y [] for i in range(N):
    x,y = [int(x) for x in input().split()]
    X.append(x)
    Y.append(y) i range(N) range N int(x) for x in input().split() for x in input().split() x input().split() ().split () input split for x in input().split() int(x) int x x,y = [int(x) for x in input().split()] x [int(x) for x in input().split()] y X.append(x) X.append X append x Y.append(y) Y.append Y append y ans = 0 ans 0 for i in range(N):
    r = math.sqrt(X[i] ** 2 + Y[i] ** 2)
    if r <= D:
        ans += 1 i range(N) range N r = math.sqrt(X[i] ** 2 + Y[i] ** 2) r 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 r <= D:
        ans += 1 r <= D r D ans += 1 ans 1 print(ans) print ans ans = 0 0 ans x,y = [int(x) for x in input().split()] [int(x) for x in input().split()] x D =[int(x) for x in input().split()] [int(x) for x in input().split()] D r = math.sqrt(X[i] ** 2 + Y[i] ** 2) math.sqrt(X[i] ** 2 + Y[i] ** 2) r Y = [] [] Y N,D =[int(x) for x in input().split()] [int(x) for x in input().split()] N y = [int(x) for x in input().split()] [int(x) for x in input().split()] y ans += 1 1 ans X = [] [] X
import math

N,D =[int(x) for x in input().split()]

X = []
Y = []

for i in range(N):
    x,y = [int(x) for x in input().split()]
    X.append(x)
    Y.append(y)

ans = 0

for i in range(N):
    r = math.sqrt(X[i] ** 2 + Y[i] ** 2)
    if r <= D:
        ans += 1

print(ans)