import math
n,d = map(int,input().split())
point_list = [0,0]*n
for i in range(n):
    point = list(map(int,input().split()))
    point_list[i]=point
count = 0

for j in range(n):
    distance = math.sqrt(point_list[j][0]**2 + point_list[j][1]**2)
    if distance <= d:
        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 point_list = [0,0]*n point_list [0,0]*n [0,0] 0 0 n for i in range(n):
    point = list(map(int,input().split()))
    point_list[i]=point i range(n) range n point = list(map(int,input().split())) point list(map(int,input().split())) list map(int,input().split()) map int input().split() ().split () input split point_list[i]=point point_list[i] point_list i point count = 0 count 0 for j in range(n):
    distance = math.sqrt(point_list[j][0]**2 + point_list[j][1]**2)
    if distance <= d:
        count += 1 j range(n) range n distance = math.sqrt(point_list[j][0]**2 + point_list[j][1]**2) distance math.sqrt(point_list[j][0]**2 + point_list[j][1]**2) math.sqrt math sqrt point_list[j][0]**2 + point_list[j][1]**2 point_list[j][0]**2 point_list[j][0] [j] point_list j 0 2 point_list[j][1]**2 point_list[j][1] [j] point_list j 1 2 if distance <= d:
        count += 1 distance <= d distance d count += 1 count 1 print(count) print count n,d = map(int,input().split()) map(int,input().split()) n point_list = [0,0]*n [0,0]*n point_list distance = math.sqrt(point_list[j][0]**2 + point_list[j][1]**2) math.sqrt(point_list[j][0]**2 + point_list[j][1]**2) distance d = map(int,input().split()) map(int,input().split()) d count = 0 0 count point = list(map(int,input().split())) list(map(int,input().split())) point count += 1 1 count
import math
n,d = map(int,input().split())
point_list = [0,0]*n
for i in range(n):
    point = list(map(int,input().split()))
    point_list[i]=point
count = 0

for j in range(n):
    distance = math.sqrt(point_list[j][0]**2 + point_list[j][1]**2)
    if distance <= d:
        count += 1

print(count)