a,b = map(int,input().split())
xy = [map(int, input().split()) for _ in range(a)]
x, y = [list(i) for i in zip(*xy)]
c = 0

for j in range(a):
  if (x[j])**2 + (y[j])**2 <= b**2:
    c += 1
print(str(c)) a,b = map(int,input().split()) a map(int,input().split()) map int input().split() ().split () input split b map(int, input().split()) for _ in range(a) for _ in range(a) _ range(a) range a for _ in range(a) map(int, input().split()) map int input().split() ().split () input split xy = [map(int, input().split()) for _ in range(a)] xy [map(int, input().split()) for _ in range(a)] list(i) for i in zip(*xy) for i in zip(*xy) i zip(*xy) zip *xy xy for i in zip(*xy) list(i) list i x, y = [list(i) for i in zip(*xy)] x [list(i) for i in zip(*xy)] y c = 0 c 0 for j in range(a):
  if (x[j])**2 + (y[j])**2 <= b**2:
    c += 1 j range(a) range a if (x[j])**2 + (y[j])**2 <= b**2:
    c += 1 (x[j])**2 + (y[j])**2 <= b**2 (x[j])**2 + (y[j])**2 (x[j])**2 x[j] x j 2 (y[j])**2 y[j] y j 2 b**2 b 2 c += 1 c 1 print(str(c)) print str(c) str c xy = [map(int, input().split()) for _ in range(a)] [map(int, input().split()) for _ in range(a)] xy b = map(int,input().split()) map(int,input().split()) b y = [list(i) for i in zip(*xy)] [list(i) for i in zip(*xy)] y c += 1 1 c a,b = map(int,input().split()) map(int,input().split()) a x, y = [list(i) for i in zip(*xy)] [list(i) for i in zip(*xy)] x c = 0 0 c
a,b = map(int,input().split())
xy = [map(int, input().split()) for _ in range(a)]
x, y = [list(i) for i in zip(*xy)]
c = 0

for j in range(a):
  if (x[j])**2 + (y[j])**2 <= b**2:
    c += 1
print(str(c))