import math

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

result_count = 0;

for i in range(N):
    X,Y = map(int,input().split())

    distance = math.sqrt((X**2) + (Y**2))

    if(distance <= D):
        result_count += 1

print(result_count) import math math N,D =  map(int,input().split()) N map(int,input().split()) map int input().split() ().split () input split D result_count = 0 result_count 0 for i in range(N):
    X,Y = map(int,input().split())

    distance = math.sqrt((X**2) + (Y**2))

    if(distance <= D):
        result_count += 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 distance = math.sqrt((X**2) + (Y**2)) distance math.sqrt((X**2) + (Y**2)) math.sqrt math sqrt (X**2) + (Y**2) X**2 X 2 Y**2 Y 2 if(distance <= D):
        result_count += 1 distance <= D distance D result_count += 1 result_count 1 print(result_count) print result_count N,D =  map(int,input().split()) map(int,input().split()) N result_count = 0 0 result_count X,Y = map(int,input().split()) map(int,input().split()) X D =  map(int,input().split()) map(int,input().split()) D distance = math.sqrt((X**2) + (Y**2)) math.sqrt((X**2) + (Y**2)) distance Y = map(int,input().split()) map(int,input().split()) Y result_count += 1 1 result_count
import math

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

result_count = 0;

for i in range(N):
    X,Y = map(int,input().split())

    distance = math.sqrt((X**2) + (Y**2))

    if(distance <= D):
        result_count += 1

print(result_count)
