N,D = (int(x) for x in input().split())
count = 0
for i in range(N):
  x,y = (int(z) for z in input().split())
  dist = x**2 + y**2
  if dist <= D**2:
    count += 1
print(count) int(x) for x in input().split() for x in input().split() x input().split() ().split () input split for x in input().split() int(x) int x N,D = (int(x) for x in input().split()) N (int(x) for x in input().split()) D count = 0 count 0 for i in range(N):
  x,y = (int(z) for z in input().split())
  dist = x**2 + y**2
  if dist <= D**2:
    count += 1 i range(N) range N int(z) for z in input().split() for z in input().split() z input().split() ().split () input split for z in input().split() int(z) int z x,y = (int(z) for z in input().split()) x (int(z) for z in input().split()) y dist = x**2 + y**2 dist x**2 + y**2 x**2 x 2 y**2 y 2 if dist <= D**2:
    count += 1 dist <= D**2 dist D**2 D 2 count += 1 count 1 print(count) print count count += 1 1 count dist = x**2 + y**2 x**2 + y**2 dist x,y = (int(z) for z in input().split()) (int(z) for z in input().split()) x N,D = (int(x) for x in input().split()) (int(x) for x in input().split()) N y = (int(z) for z in input().split()) (int(z) for z in input().split()) y D = (int(x) for x in input().split()) (int(x) for x in input().split()) D count = 0 0 count
N,D = (int(x) for x in input().split())
count = 0
for i in range(N):
  x,y = (int(z) for z in input().split())
  dist = x**2 + y**2
  if dist <= D**2:
    count += 1
print(count)