n,d = input().split(" ")

count = 0
for i in range(int(n)):
  x,y = input().split(" ")
  
  r = (int(x)**2+int(y)**2)**(1/2)
  
  if r <= int(d):
    count += 1
print(count) n,d = input().split(" ") n input().split(" ") ().split () input split " " d count = 0 count 0 for i in range(int(n)):
  x,y = input().split(" ")
  
  r = (int(x)**2+int(y)**2)**(1/2)
  
  if r <= int(d):
    count += 1 i range(int(n)) range int(n) int n x,y = input().split(" ") x input().split(" ") ().split () input split " " y r = (int(x)**2+int(y)**2)**(1/2) r (int(x)**2+int(y)**2)**(1/2) int(x)**2+int(y)**2 int(x)**2 int(x) int x 2 int(y)**2 int(y) int y 2 1/2 1 2 if r <= int(d):
    count += 1 r <= int(d) r int(d) int d count += 1 count 1 print(count) print count d = input().split(" ") input().split(" ") d r = (int(x)**2+int(y)**2)**(1/2) (int(x)**2+int(y)**2)**(1/2) r y = input().split(" ") input().split(" ") y n,d = input().split(" ") input().split(" ") n count = 0 0 count x,y = input().split(" ") input().split(" ") x count += 1 1 count
n,d = input().split(" ")

count = 0
for i in range(int(n)):
  x,y = input().split(" ")
  
  r = (int(x)**2+int(y)**2)**(1/2)
  
  if r <= int(d):
    count += 1
print(count)