n, d = map(int, input().split())


number = 0
for i in range(n):
    x, y = map(int, input().split())
    distance = x ** 2 + y ** 2
    
    if distance <= d ** 2:
        number += 1

print(number) n, d = map(int, input().split()) n map(int, input().split()) map int input().split() ().split () input split d number = 0 number 0 for i in range(n):
    x, y = map(int, input().split())
    distance = x ** 2 + y ** 2
    
    if distance <= d ** 2:
        number += 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 = x ** 2 + y ** 2 distance x ** 2 + y ** 2 x ** 2 x 2 y ** 2 y 2 if distance <= d ** 2:
        number += 1 distance <= d ** 2 distance d ** 2 d 2 number += 1 number 1 print(number) print number distance = x ** 2 + y ** 2 x ** 2 + y ** 2 distance number += 1 1 number y = map(int, input().split()) map(int, input().split()) y x, y = map(int, input().split()) map(int, input().split()) x number = 0 0 number 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())


number = 0
for i in range(n):
    x, y = map(int, input().split())
    distance = x ** 2 + y ** 2
    
    if distance <= d ** 2:
        number += 1

print(number)