list1 = input().split(" ")
N = int(list1[0])
D = int(list1[1])
count1 = 0
for i in range(N):
  list2 = input().split(" ")
  x = int(list2[0])
  y = int(list2[1])
  d = (x**2 + y**2)**(1/2)
  if d <= D:
    count1 += 1
  else:
    pass
print(count1)   list1 = input().split(" ") list1 input().split(" ") ().split () input split " " N = int(list1[0]) N int(list1[0]) int list1[0] list1 0 D = int(list1[1]) D int(list1[1]) int list1[1] list1 1 count1 = 0 count1 0 for i in range(N):
  list2 = input().split(" ")
  x = int(list2[0])
  y = int(list2[1])
  d = (x**2 + y**2)**(1/2)
  if d <= D:
    count1 += 1
  else:
    pass i range(N) range N list2 = input().split(" ") list2 input().split(" ") ().split () input split " " x = int(list2[0]) x int(list2[0]) int list2[0] list2 0 y = int(list2[1]) y int(list2[1]) int list2[1] list2 1 d = (x**2 + y**2)**(1/2) d (x**2 + y**2)**(1/2) x**2 + y**2 x**2 x 2 y**2 y 2 1/2 1 2 if d <= D:
    count1 += 1
  else:
    pass d <= D d D count1 += 1 count1 1 print(count1) print count1 x = int(list2[0]) int(list2[0]) x list1 = input().split(" ") input().split(" ") list1 count1 = 0 0 count1 count1 += 1 1 count1 N = int(list1[0]) int(list1[0]) N D = int(list1[1]) int(list1[1]) D d = (x**2 + y**2)**(1/2) (x**2 + y**2)**(1/2) d list2 = input().split(" ") input().split(" ") list2 y = int(list2[1]) int(list2[1]) y
list1 = input().split(" ")
N = int(list1[0])
D = int(list1[1])
count1 = 0
for i in range(N):
  list2 = input().split(" ")
  x = int(list2[0])
  y = int(list2[1])
  d = (x**2 + y**2)**(1/2)
  if d <= D:
    count1 += 1
  else:
    pass
print(count1)  