n,d = [int(x) for x in input().split()]
x = []
y = []
for i in range(n):
  x1,y1 = [int(x) for x in input().split()]
  x.append(x1)
  y.append(y1)
c = 0
for i in range(n):
  s = x[i] ** 2 + y[i] ** 2
  if s <= d ** 2:
    c += 1
print(c) int(x) for x in input().split() for x in input().split() x input().split() ().split () input split for x in input().split() int(x) int x n,d = [int(x) for x in input().split()] n [int(x) for x in input().split()] d x = [] x [] y = [] y [] for i in range(n):
  x1,y1 = [int(x) for x in input().split()]
  x.append(x1)
  y.append(y1) i range(n) range n int(x) for x in input().split() for x in input().split() x input().split() ().split () input split for x in input().split() int(x) int x x1,y1 = [int(x) for x in input().split()] x1 [int(x) for x in input().split()] y1 x.append(x1) x.append x append x1 y.append(y1) y.append y append y1 c = 0 c 0 for i in range(n):
  s = x[i] ** 2 + y[i] ** 2
  if s <= d ** 2:
    c += 1 i range(n) range n s = x[i] ** 2 + y[i] ** 2 s x[i] ** 2 + y[i] ** 2 x[i] ** 2 x[i] x i 2 y[i] ** 2 y[i] y i 2 if s <= d ** 2:
    c += 1 s <= d ** 2 s d ** 2 d 2 c += 1 c 1 print(c) print c x = [] [] x d = [int(x) for x in input().split()] [int(x) for x in input().split()] d y1 = [int(x) for x in input().split()] [int(x) for x in input().split()] y1 c += 1 1 c y = [] [] y n,d = [int(x) for x in input().split()] [int(x) for x in input().split()] n c = 0 0 c s = x[i] ** 2 + y[i] ** 2 x[i] ** 2 + y[i] ** 2 s x1,y1 = [int(x) for x in input().split()] [int(x) for x in input().split()] x1
n,d = [int(x) for x in input().split()]
x = []
y = []
for i in range(n):
  x1,y1 = [int(x) for x in input().split()]
  x.append(x1)
  y.append(y1)
c = 0
for i in range(n):
  s = x[i] ** 2 + y[i] ** 2
  if s <= d ** 2:
    c += 1
print(c)