nd = list(map(int, input().split()))
N = nd[0]
D = nd[1]
ans = 0
for i in range(N):
  x = list(map(int, input().split()))
  if x[0] ** 2 + x[1] ** 2 <= D ** 2:
    ans += 1
print(ans) nd = list(map(int, input().split())) nd list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split N = nd[0] N nd[0] nd 0 D = nd[1] D nd[1] nd 1 ans = 0 ans 0 for i in range(N):
  x = list(map(int, input().split()))
  if x[0] ** 2 + x[1] ** 2 <= D ** 2:
    ans += 1 i range(N) range N x = list(map(int, input().split())) x list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split if x[0] ** 2 + x[1] ** 2 <= D ** 2:
    ans += 1 x[0] ** 2 + x[1] ** 2 <= D ** 2 x[0] ** 2 + x[1] ** 2 x[0] ** 2 x[0] x 0 2 x[1] ** 2 x[1] x 1 2 D ** 2 D 2 ans += 1 ans 1 print(ans) print ans D = nd[1] nd[1] D ans += 1 1 ans N = nd[0] nd[0] N x = list(map(int, input().split())) list(map(int, input().split())) x ans = 0 0 ans nd = list(map(int, input().split())) list(map(int, input().split())) nd
nd = list(map(int, input().split()))
N = nd[0]
D = nd[1]
ans = 0
for i in range(N):
  x = list(map(int, input().split()))
  if x[0] ** 2 + x[1] ** 2 <= D ** 2:
    ans += 1
print(ans)
