N, D = map(int, input().split())
ans = 0
for i in range(N):
  X, Y = map(int, input().split())
  if (X ** 2 + Y ** 2) ** 0.5 <= D:
    ans += 1
else:
  print(ans) N, D = map(int, input().split()) N map(int, input().split()) map int input().split() ().split () input split D ans = 0 ans 0 for i in range(N):
  X, Y = map(int, input().split())
  if (X ** 2 + Y ** 2) ** 0.5 <= D:
    ans += 1
else:
  print(ans) i 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 ** 2 + Y ** 2) ** 0.5 <= D:
    ans += 1 (X ** 2 + Y ** 2) ** 0.5 <= D (X ** 2 + Y ** 2) ** 0.5 X ** 2 + Y ** 2 X ** 2 X 2 Y ** 2 Y 2 0.5 D ans += 1 ans 1 print(ans) print ans N, D = map(int, input().split()) map(int, input().split()) N ans += 1 1 ans Y = map(int, input().split()) map(int, input().split()) Y D = map(int, input().split()) map(int, input().split()) D ans = 0 0 ans X, Y = map(int, input().split()) map(int, input().split()) X
N, D = map(int, input().split())
ans = 0
for i in range(N):
  X, Y = map(int, input().split())
  if (X ** 2 + Y ** 2) ** 0.5 <= D:
    ans += 1
else:
  print(ans)