N,D=map(int,input().split())
ans=0
for _ in range(N):
    X,Y=map(int,input().split())
    if X*X+Y*Y<=D*D:
        ans+=1
print(ans) N,D=map(int,input().split()) N map(int,input().split()) map int input().split() ().split () input split D ans=0 ans 0 for _ in range(N):
    X,Y=map(int,input().split())
    if X*X+Y*Y<=D*D:
        ans+=1 _ range(N) range N X,Y=map(int,input().split()) X map(int,input().split()) map int input().split() ().split () input split Y if X*X+Y*Y<=D*D:
        ans+=1 X*X+Y*Y<=D*D X*X+Y*Y X*X X X Y*Y Y Y D*D D D ans+=1 ans 1 print(ans) print ans ans=0 0 ans Y=map(int,input().split()) map(int,input().split()) Y ans+=1 1 ans X,Y=map(int,input().split()) map(int,input().split()) X N,D=map(int,input().split()) map(int,input().split()) N D=map(int,input().split()) map(int,input().split()) D
N,D=map(int,input().split())
ans=0
for _ in range(N):
    X,Y=map(int,input().split())
    if X*X+Y*Y<=D*D:
        ans+=1
print(ans)
