import math

N, D = map(int, input().split())
points = []
count =0

for i in range(N):
    X, Y = map(int, input().split())
    if D >= math.sqrt(X ** 2 + Y ** 2):
        count += 1


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

N, D = map(int, input().split())
points = []
count =0

for i in range(N):
    X, Y = map(int, input().split())
    if D >= math.sqrt(X ** 2 + Y ** 2):
        count += 1


print(count)

