n, d = map(int, input().split())
p = []
for _ in range(n):
  p.append(list(map(int, input().split())))
d2 = d*d
a = 0
for i in range(n):
  if(p[i][0]**2+p[i][1]**2 <= d2):
    a += 1
print(a) n, d = map(int, input().split()) n map(int, input().split()) map int input().split() ().split () input split d p = [] p [] for _ in range(n):
  p.append(list(map(int, input().split()))) _ range(n) range n p.append(list(map(int, input().split()))) p.append p append list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split d2 = d*d d2 d*d d d a = 0 a 0 for i in range(n):
  if(p[i][0]**2+p[i][1]**2 <= d2):
    a += 1 i range(n) range n if(p[i][0]**2+p[i][1]**2 <= d2):
    a += 1 p[i][0]**2+p[i][1]**2 <= d2 p[i][0]**2+p[i][1]**2 p[i][0]**2 p[i][0] [i] p i 0 2 p[i][1]**2 p[i][1] [i] p i 1 2 d2 a += 1 a 1 print(a) print a a = 0 0 a d = map(int, input().split()) map(int, input().split()) d p = [] [] p a += 1 1 a n, d = map(int, input().split()) map(int, input().split()) n d2 = d*d d*d d2
n, d = map(int, input().split())
p = []
for _ in range(n):
  p.append(list(map(int, input().split())))
d2 = d*d
a = 0
for i in range(n):
  if(p[i][0]**2+p[i][1]**2 <= d2):
    a += 1
print(a)