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