def II(): return int(input())
def MI(): return map(int, input().split())
def LI(): return list(map(int, input().split()))

ans=0
N,D=MI()
D2=D*D
for i in range(N):
  x,y=MI()
  if x*x+y*y<=D2:
    ans+=1
print(ans) def II(): return int(input()) II def MI(): return map(int, input().split()) MI def LI(): return list(map(int, input().split())) LI ans=0 ans 0 N,D=MI() N MI() MI D D2=D*D D2 D*D D D for i in range(N):
  x,y=MI()
  if x*x+y*y<=D2:
    ans+=1 i range(N) range N x,y=MI() x MI() MI y if x*x+y*y<=D2:
    ans+=1 x*x+y*y<=D2 x*x+y*y x*x x x y*y y y D2 ans+=1 ans 1 print(ans) print ans D2=D*D D*D D2 ans+=1 1 ans def MI(): return map(int, input().split()) def MI(): return map(int, input().split()) MI D=MI() MI() D N,D=MI() MI() N ans=0 0 ans def LI(): return list(map(int, input().split())) def LI(): return list(map(int, input().split())) LI x,y=MI() MI() x def II(): return int(input()) def II(): return int(input()) II y=MI() MI() y
def II(): return int(input())
def MI(): return map(int, input().split())
def LI(): return list(map(int, input().split()))

ans=0
N,D=MI()
D2=D*D
for i in range(N):
  x,y=MI()
  if x*x+y*y<=D2:
    ans+=1
print(ans)