import math

n, d = input().split()
count = 0
dn = int(d)

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

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

n, d = input().split()
count = 0
dn = int(d)

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

print(count)