import math
def distance(x,y):
  return math.sqrt(x**2+y**2)

n,d=input().split()
n=int(n)
d=int(d)
count=0
for i in range(n):
  x,y=input().split()
  x=int(x)
  y=int(y)
  r=distance(x,y)
  if(r<=d):
    count+=1

print(count) import math math def distance(x,y):
  return math.sqrt(x**2+y**2) distance return math.sqrt(x**2+y**2) math.sqrt(x**2+y**2) math.sqrt math sqrt x**2+y**2 x**2 x 2 y**2 y 2 x x y y 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 count=0 count 0 for i in range(n):
  x,y=input().split()
  x=int(x)
  y=int(y)
  r=distance(x,y)
  if(r<=d):
    count+=1 i range(n) range n x,y=input().split() x input().split() ().split () input split y x=int(x) x int(x) int x y=int(y) y int(y) int y r=distance(x,y) r distance(x,y) distance x y if(r<=d):
    count+=1 r<=d r d count+=1 count 1 print(count) print count def distance(x,y):
  return math.sqrt(x**2+y**2) def distance(x,y):
  return math.sqrt(x**2+y**2) distance d=input().split() input().split() d count=0 0 count y=input().split() input().split() y r=distance(x,y) distance(x,y) r x,y=input().split() input().split() x d=int(d) int(d) d x=int(x) int(x) x y=int(y) int(y) y n=int(n) int(n) n count+=1 1 count n,d=input().split() input().split() n
import math
def distance(x,y):
  return math.sqrt(x**2+y**2)

n,d=input().split()
n=int(n)
d=int(d)
count=0
for i in range(n):
  x,y=input().split()
  x=int(x)
  y=int(y)
  r=distance(x,y)
  if(r<=d):
    count+=1

print(count)