
count = 0

n, d = map(int, input().split())
for _ in range(n):
    l, m = map(int, input().split())
    z = (l ** 2 + m ** 2) ** 0.5
    if z <= d:
        count += 1


print(count) count = 0 count 0 n, d = map(int, input().split()) n map(int, input().split()) map int input().split() ().split () input split d for _ in range(n):
    l, m = map(int, input().split())
    z = (l ** 2 + m ** 2) ** 0.5
    if z <= d:
        count += 1 _ range(n) range n l, m = map(int, input().split()) l map(int, input().split()) map int input().split() ().split () input split m z = (l ** 2 + m ** 2) ** 0.5 z (l ** 2 + m ** 2) ** 0.5 l ** 2 + m ** 2 l ** 2 l 2 m ** 2 m 2 0.5 if z <= d:
        count += 1 z <= d z d count += 1 count 1 print(count) print count z = (l ** 2 + m ** 2) ** 0.5 (l ** 2 + m ** 2) ** 0.5 z n, d = map(int, input().split()) map(int, input().split()) n d = map(int, input().split()) map(int, input().split()) d l, m = map(int, input().split()) map(int, input().split()) l m = map(int, input().split()) map(int, input().split()) m count += 1 1 count count = 0 0 count

count = 0

n, d = map(int, input().split())
for _ in range(n):
    l, m = map(int, input().split())
    z = (l ** 2 + m ** 2) ** 0.5
    if z <= d:
        count += 1


print(count)
