import math

N, D = map(int,input().split())

a = []
n = 0
for i in range(N):
  p,q = map(int, input().split())
  z = math.sqrt(p**2+q**2)
  if z <= D:
    n+=1
    
#print (a)
print (n) import math math N, D = map(int,input().split()) N map(int,input().split()) map int input().split() ().split () input split D a = [] a [] n = 0 n 0 for i in range(N):
  p,q = map(int, input().split())
  z = math.sqrt(p**2+q**2)
  if z <= D:
    n+=1
    
#print (a) i range(N) range N p,q = map(int, input().split()) p map(int, input().split()) map int input().split() ().split () input split q z = math.sqrt(p**2+q**2) z math.sqrt(p**2+q**2) math.sqrt math sqrt p**2+q**2 p**2 p 2 q**2 q 2 if z <= D:
    n+=1
    
#print (a) z <= D z D n+=1 n 1 print (n) print n q = map(int, input().split()) map(int, input().split()) q z = math.sqrt(p**2+q**2) math.sqrt(p**2+q**2) z p,q = map(int, input().split()) map(int, input().split()) p n+=1 1 n D = map(int,input().split()) map(int,input().split()) D n = 0 0 n a = [] [] a N, D = map(int,input().split()) map(int,input().split()) N
import math

N, D = map(int,input().split())

a = []
n = 0
for i in range(N):
  p,q = map(int, input().split())
  z = math.sqrt(p**2+q**2)
  if z <= D:
    n+=1
    
#print (a)
print (n)