n, d = map(int, input().split())
cnt = 0
for _ in range(n):
  x, y = map(int, input().split())
  if (x * x + y * y <= d * d):
    cnt = cnt + 1
print(cnt) n, d = map(int, input().split()) n map(int, input().split()) map int input().split() ().split () input split d cnt = 0 cnt 0 for _ in range(n):
  x, y = map(int, input().split())
  if (x * x + y * y <= d * d):
    cnt = cnt + 1 _ range(n) range n x, y = map(int, input().split()) x map(int, input().split()) map int input().split() ().split () input split y if (x * x + y * y <= d * d):
    cnt = cnt + 1 x * x + y * y <= d * d x * x + y * y x * x x x y * y y y d * d d d cnt = cnt + 1 cnt cnt + 1 cnt 1 print(cnt) print cnt y = map(int, input().split()) map(int, input().split()) y cnt = cnt + 1 cnt + 1 cnt n, d = map(int, input().split()) map(int, input().split()) n d = map(int, input().split()) map(int, input().split()) d cnt = 0 0 cnt x, y = map(int, input().split()) map(int, input().split()) x
n, d = map(int, input().split())
cnt = 0
for _ in range(n):
  x, y = map(int, input().split())
  if (x * x + y * y <= d * d):
    cnt = cnt + 1
print(cnt)