S = 0
N,D = input().split()
N = int(N)
D = int(D)
X = [0]*N
Y = [0]*N
for i in range(N):
  X[i],Y[i] = map(int, input().split())
  if ((X[i])**2 + (Y[i])**2) <= (D)**2:
    S = S + 1
print(S) S = 0 S 0 N,D = input().split() N input().split() ().split () input split D N = int(N) N int(N) int N D = int(D) D int(D) int D X = [0]*N X [0]*N [0] 0 N Y = [0]*N Y [0]*N [0] 0 N for i in range(N):
  X[i],Y[i] = map(int, input().split())
  if ((X[i])**2 + (Y[i])**2) <= (D)**2:
    S = S + 1 i range(N) range N X[i],Y[i] = map(int, input().split()) X[i] X i map(int, input().split()) map int input().split() ().split () input split Y[i] Y i if ((X[i])**2 + (Y[i])**2) <= (D)**2:
    S = S + 1 ((X[i])**2 + (Y[i])**2) <= (D)**2 (X[i])**2 + (Y[i])**2 (X[i])**2 X[i] X i 2 (Y[i])**2 Y[i] Y i 2 (D)**2 D 2 S = S + 1 S S + 1 S 1 print(S) print S N,D = input().split() input().split() N S = S + 1 S + 1 S S = 0 0 S D = input().split() input().split() D X = [0]*N [0]*N X D = int(D) int(D) D N = int(N) int(N) N Y = [0]*N [0]*N Y
S = 0
N,D = input().split()
N = int(N)
D = int(D)
X = [0]*N
Y = [0]*N
for i in range(N):
  X[i],Y[i] = map(int, input().split())
  if ((X[i])**2 + (Y[i])**2) <= (D)**2:
    S = S + 1
print(S)