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