N , D = map(int, input().split())
cnt = 0
for n in range(N):
  x,y = map(int, input().split())
  if (x ** 2 + y ** 2) ** (1 / 2) <= D:
    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 n in range(N):
  x,y = map(int, input().split())
  if (x ** 2 + y ** 2) ** (1 / 2) <= D:
    cnt += 1 n 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) ** (1 / 2) <= D:
    cnt += 1 (x ** 2 + y ** 2) ** (1 / 2) <= D (x ** 2 + y ** 2) ** (1 / 2) x ** 2 + y ** 2 x ** 2 x 2 y ** 2 y 2 1 / 2 1 2 D cnt += 1 cnt 1 print(cnt) print cnt y = map(int, input().split()) map(int, input().split()) y N , D = map(int, input().split()) map(int, input().split()) N cnt += 1 1 cnt cnt = 0 0 cnt D = map(int, input().split()) map(int, input().split()) D x,y = map(int, input().split()) map(int, input().split()) x
N , D = map(int, input().split())
cnt = 0
for n in range(N):
  x,y = map(int, input().split())
  if (x ** 2 + y ** 2) ** (1 / 2) <= D:
    cnt += 1
print(cnt)