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

A = []

for i in range(n):
  A_i = list(map(int, input().split()))
  A.append(A_i)
  
ans = 0

for j in A:
  if (j[0] ** 2 + j[1] ** 2) <= d **2 :
    ans += 1

print(ans) n, d = map(int, input().split()) n map(int, input().split()) map int input().split() ().split () input split d A = [] A [] for i in range(n):
  A_i = list(map(int, input().split()))
  A.append(A_i)
   i range(n) range n A_i = list(map(int, input().split())) A_i list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split A.append(A_i) A.append A append A_i ans = 0 ans 0 for j in A:
  if (j[0] ** 2 + j[1] ** 2) <= d **2 :
    ans += 1 j A if (j[0] ** 2 + j[1] ** 2) <= d **2 :
    ans += 1 (j[0] ** 2 + j[1] ** 2) <= d **2 j[0] ** 2 + j[1] ** 2 j[0] ** 2 j[0] j 0 2 j[1] ** 2 j[1] j 1 2 d **2 d 2 ans += 1 ans 1 print(ans) print ans A = [] [] A n, d = map(int, input().split()) map(int, input().split()) n d = map(int, input().split()) map(int, input().split()) d ans += 1 1 ans ans = 0 0 ans A_i = list(map(int, input().split())) list(map(int, input().split())) A_i
n, d = map(int, input().split())

A = []

for i in range(n):
  A_i = list(map(int, input().split()))
  A.append(A_i)
  
ans = 0

for j in A:
  if (j[0] ** 2 + j[1] ** 2) <= d **2 :
    ans += 1

print(ans)
