import math

n,d = map(int,input().split())

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

n,d = map(int,input().split())

count = 0
for i in range(n) :
    p,q = map(int,input().split())
    if math.sqrt(p**2+q**2)<=d :
        count += 1

print(count)