import math
 
N,D = map(int, input().split())
count = 0
for i in range(0, N):
  x = list(map(int, input().split()))
  if D >= math.sqrt(x[0]**2 + x[1]**2):
    count = count + 1
 
print(count) import math math N,D = map(int, input().split()) N map(int, input().split()) map int input().split() ().split () input split D count = 0 count 0 for i in range(0, N):
  x = list(map(int, input().split()))
  if D >= math.sqrt(x[0]**2 + x[1]**2):
    count = count + 1
  i range(0, N) range 0 N x = list(map(int, input().split())) x list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split if D >= math.sqrt(x[0]**2 + x[1]**2):
    count = count + 1
  D >= math.sqrt(x[0]**2 + x[1]**2) D math.sqrt(x[0]**2 + x[1]**2) math.sqrt math sqrt x[0]**2 + x[1]**2 x[0]**2 x[0] x 0 2 x[1]**2 x[1] x 1 2 count = count + 1 count count + 1 count 1 print(count) print count x = list(map(int, input().split())) list(map(int, input().split())) x D = map(int, input().split()) map(int, input().split()) D count = 0 0 count N,D = map(int, input().split()) map(int, input().split()) N count = count + 1 count + 1 count
import math
 
N,D = map(int, input().split())
count = 0
for i in range(0, N):
  x = list(map(int, input().split()))
  if D >= math.sqrt(x[0]**2 + x[1]**2):
    count = count + 1
 
print(count)