import math

N, D = map(int, input().split())
X_Y = []
for i in range(N):
    X_Y.append(list(map(int, input().split())))
    
ans = 0
for n in range(N):
  x, y = X_Y[n]
  if(math.sqrt(x**2 + y**2) <= D): ans += 1

print(ans) import math math N, D = map(int, input().split()) N map(int, input().split()) map int input().split() ().split () input split D X_Y = [] X_Y [] for i in range(N):
    X_Y.append(list(map(int, input().split())))
     i range(N) range N X_Y.append(list(map(int, input().split()))) X_Y.append X_Y append list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split ans = 0 ans 0 for n in range(N):
  x, y = X_Y[n]
  if(math.sqrt(x**2 + y**2) <= D): ans += 1 n range(N) range N x, y = X_Y[n] x X_Y[n] X_Y n y if(math.sqrt(x**2 + y**2) <= D): ans += math.sqrt(x**2 + y**2) <= D math.sqrt(x**2 + y**2) math.sqrt math sqrt x**2 + y**2 x**2 x 2 y**2 y 2 D print(ans) print ans N, D = map(int, input().split()) map(int, input().split()) N D = map(int, input().split()) map(int, input().split()) D ans = 0 0 ans X_Y = [] [] X_Y x, y = X_Y[n] X_Y[n] x y = X_Y[n] X_Y[n] y
import math

N, D = map(int, input().split())
X_Y = []
for i in range(N):
    X_Y.append(list(map(int, input().split())))
    
ans = 0
for n in range(N):
  x, y = X_Y[n]
  if(math.sqrt(x**2 + y**2) <= D): ans += 1

print(ans)