import math
N,D = map(int,input().split())
X  = [None]*N
Y = [None]*N
for i in range(N):
    X[i],Y[i] = map(int,input().split())

ans=0
for i in range(N):
    if(math.sqrt(X[i]**2+Y[i]**2) <=D):
        ans+=1

print(ans) import math math N,D = map(int,input().split()) N map(int,input().split()) map int input().split() ().split () input split D X  = [None]*N X [None]*N [None] None N Y = [None]*N Y [None]*N [None] None N for i in range(N):
    X[i],Y[i] = map(int,input().split()) 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 ans=0 ans 0 for i in range(N):
    if(math.sqrt(X[i]**2+Y[i]**2) <=D):
        ans+=1 i range(N) range N if(math.sqrt(X[i]**2+Y[i]**2) <=D):
        ans+=1 math.sqrt(X[i]**2+Y[i]**2) <=D math.sqrt(X[i]**2+Y[i]**2) math.sqrt math sqrt X[i]**2+Y[i]**2 X[i]**2 X[i] X i 2 Y[i]**2 Y[i] Y i 2 D ans+=1 ans 1 print(ans) print ans N,D = map(int,input().split()) map(int,input().split()) N D = map(int,input().split()) map(int,input().split()) D X  = [None]*N [None]*N X ans=0 0 ans ans+=1 1 ans Y = [None]*N [None]*N Y
import math
N,D = map(int,input().split())
X  = [None]*N
Y = [None]*N
for i in range(N):
    X[i],Y[i] = map(int,input().split())

ans=0
for i in range(N):
    if(math.sqrt(X[i]**2+Y[i]**2) <=D):
        ans+=1

print(ans)
