#!/usr/bin/env python3
import math

N, D = list(map(int, input().split()))
xy_list = []

count = 0
for _ in range(N):
    x, y = list(map(int, input().split()))
    if math.sqrt(x ** 2 + y ** 2) <= D:
        count += 1
print(count) 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 xy_list = [] xy_list [] count = 0 count 0 for _ in range(N):
    x, y = list(map(int, input().split()))
    if math.sqrt(x ** 2 + y ** 2) <= D:
        count += 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 if math.sqrt(x ** 2 + y ** 2) <= D:
        count += 1 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 D count += 1 count 1 print(count) print count y = list(map(int, input().split())) list(map(int, input().split())) y D = list(map(int, input().split())) list(map(int, input().split())) D count += 1 1 count xy_list = [] [] xy_list x, y = list(map(int, input().split())) list(map(int, input().split())) x N, D = list(map(int, input().split())) list(map(int, input().split())) N count = 0 0 count
#!/usr/bin/env python3
import math

N, D = list(map(int, input().split()))
xy_list = []

count = 0
for _ in range(N):
    x, y = list(map(int, input().split()))
    if math.sqrt(x ** 2 + y ** 2) <= D:
        count += 1
print(count)
