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

count = 0

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

print(count) 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 count = 0 count 0 for i in range(N):
    x, y = list(map(int, input().split()))
    if x ** 2 + y ** 2 <= D ** 2:
        count += 1 i 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 x ** 2 + y ** 2 <= D ** 2:
        count += 1 x ** 2 + y ** 2 <= D ** 2 x ** 2 + y ** 2 x ** 2 x 2 y ** 2 y 2 D ** 2 D 2 count += 1 count 1 print(count) print count count = 0 0 count x, y = list(map(int, input().split())) list(map(int, input().split())) x D = list(map(int, input().split())) list(map(int, input().split())) D y = list(map(int, input().split())) list(map(int, input().split())) y N, D = list(map(int, input().split())) list(map(int, input().split())) N count += 1 1 count
N, D = list(map(int, input().split()))

count = 0

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

print(count)