import math
N,D = map(int,input().split())

cnt=0

for i in range(N):
    X,Y = map(int,input().split())
    
    dis = math.sqrt(X*X+Y*Y)

    if dis <= D:
        cnt+=1
        
        
print(cnt) import math math N,D = map(int,input().split()) N map(int,input().split()) map int input().split() ().split () input split D cnt=0 cnt 0 for i in range(N):
    X,Y = map(int,input().split())
    
    dis = math.sqrt(X*X+Y*Y)

    if dis <= D:
        cnt+=1
        
         i range(N) range N X,Y = map(int,input().split()) X map(int,input().split()) map int input().split() ().split () input split Y dis = math.sqrt(X*X+Y*Y) dis math.sqrt(X*X+Y*Y) math.sqrt math sqrt X*X+Y*Y X*X X X Y*Y Y Y if dis <= D:
        cnt+=1
        
         dis <= D dis D cnt+=1 cnt 1 print(cnt) print cnt N,D = map(int,input().split()) map(int,input().split()) N cnt+=1 1 cnt dis = math.sqrt(X*X+Y*Y) math.sqrt(X*X+Y*Y) dis cnt=0 0 cnt D = map(int,input().split()) map(int,input().split()) D X,Y = map(int,input().split()) map(int,input().split()) X Y = map(int,input().split()) map(int,input().split()) Y
import math
N,D = map(int,input().split())

cnt=0

for i in range(N):
    X,Y = map(int,input().split())
    
    dis = math.sqrt(X*X+Y*Y)

    if dis <= D:
        cnt+=1
        
        
print(cnt)