def counter(arr, d):
  import math
  count = 0
  for item in arr:
    a = int(item[0])
    b = int(item[1])
    lenght = math.sqrt(a**2+b**2)
    #print(lenght)
    if lenght <= d:
      count += 1
  print(count)  
      

if __name__ == '__main__':
  line1 = input().split(" ")
  d = int(line1[1])
  num = int(line1[0])
  #print(d, num)
  arr = []
  for i in range(num):
    line = input().split(" ")
    arr.append(line)
  counter(arr, d) def counter(arr, d):
  import math
  count = 0
  for item in arr:
    a = int(item[0])
    b = int(item[1])
    lenght = math.sqrt(a**2+b**2)
    #print(lenght)
    if lenght <= d:
      count += 1
  print(count)  
       counter import math math count = 0 count 0 for item in arr:
    a = int(item[0])
    b = int(item[1])
    lenght = math.sqrt(a**2+b**2)
    #print(lenght)
    if lenght <= d:
      count += 1
   item arr a = int(item[0]) a int(item[0]) int item[0] item 0 b = int(item[1]) b int(item[1]) int item[1] item 1 lenght = math.sqrt(a**2+b**2) lenght math.sqrt(a**2+b**2) math.sqrt math sqrt a**2+b**2 a**2 a 2 b**2 b 2 if lenght <= d:
      count += 1
   lenght <= d lenght d count += 1 count 1 print(count) print count arr arr d d if __name__ == '__main__':
  line1 = input().split(" ")
  d = int(line1[1])
  num = int(line1[0])
  #print(d, num)
  arr = []
  for i in range(num):
    line = input().split(" ")
    arr.append(line)
  counter(arr, d) __name__ == '__main__' __name__ '__main__' line1 = input().split(" ") line1 input().split(" ") ().split () input split " " d = int(line1[1]) d int(line1[1]) int line1[1] line1 1 num = int(line1[0]) num int(line1[0]) int line1[0] line1 0 arr = [] arr [] for i in range(num):
    line = input().split(" ")
    arr.append(line)
   i range(num) range num line = input().split(" ") line input().split(" ") ().split () input split " " arr.append(line) arr.append arr append line counter(arr, d) counter arr d line = input().split(" ") input().split(" ") line def counter(arr, d):
  import math
  count = 0
  for item in arr:
    a = int(item[0])
    b = int(item[1])
    lenght = math.sqrt(a**2+b**2)
    #print(lenght)
    if lenght <= d:
      count += 1
  print(count)  
       def counter(arr, d):
  import math
  count = 0
  for item in arr:
    a = int(item[0])
    b = int(item[1])
    lenght = math.sqrt(a**2+b**2)
    #print(lenght)
    if lenght <= d:
      count += 1
  print(count)  
       counter num = int(line1[0]) int(line1[0]) num line1 = input().split(" ") input().split(" ") line1 arr = [] [] arr d = int(line1[1]) int(line1[1]) d
def counter(arr, d):
  import math
  count = 0
  for item in arr:
    a = int(item[0])
    b = int(item[1])
    lenght = math.sqrt(a**2+b**2)
    #print(lenght)
    if lenght <= d:
      count += 1
  print(count)  
      

if __name__ == '__main__':
  line1 = input().split(" ")
  d = int(line1[1])
  num = int(line1[0])
  #print(d, num)
  arr = []
  for i in range(num):
    line = input().split(" ")
    arr.append(line)
  counter(arr, d)