import math
n, d = list(map(int, input().split()))

ans = 0
for _ in range(n):
    x, y = list(map(int, input().split()))
    dist = math.sqrt(x ** 2 + y ** 2)
    if dist <= d:
        ans += 1
print(ans) import math math n, d = list(map(int, input().split())) n list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split d ans = 0 ans 0 for _ in range(n):
    x, y = list(map(int, input().split()))
    dist = math.sqrt(x ** 2 + y ** 2)
    if dist <= d:
        ans += 1 _ range(n) range n x, y = list(map(int, input().split())) x list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split y dist = math.sqrt(x ** 2 + y ** 2) dist math.sqrt(x ** 2 + y ** 2) math.sqrt math sqrt x ** 2 + y ** 2 x ** 2 x 2 y ** 2 y 2 if dist <= d:
        ans += 1 dist <= d dist d ans += 1 ans 1 print(ans) print ans n, d = list(map(int, input().split())) list(map(int, input().split())) n dist = math.sqrt(x ** 2 + y ** 2) math.sqrt(x ** 2 + y ** 2) dist ans += 1 1 ans y = list(map(int, input().split())) list(map(int, input().split())) y d = list(map(int, input().split())) list(map(int, input().split())) d ans = 0 0 ans x, y = list(map(int, input().split())) list(map(int, input().split())) x
import math
n, d = list(map(int, input().split()))

ans = 0
for _ in range(n):
    x, y = list(map(int, input().split()))
    dist = math.sqrt(x ** 2 + y ** 2)
    if dist <= d:
        ans += 1
print(ans)