a, b = map(int, input().split())
import numpy
count = 0
for i in range(a):
  c, d = map(int, input().split())
  e = c ** 2 + d ** 2
  if numpy.sqrt(e) <= b:
    count += 1
print(count) a, b = map(int, input().split()) a map(int, input().split()) map int input().split() ().split () input split b import numpy numpy count = 0 count 0 for i in range(a):
  c, d = map(int, input().split())
  e = c ** 2 + d ** 2
  if numpy.sqrt(e) <= b:
    count += 1 i range(a) range a c, d = map(int, input().split()) c map(int, input().split()) map int input().split() ().split () input split d e = c ** 2 + d ** 2 e c ** 2 + d ** 2 c ** 2 c 2 d ** 2 d 2 if numpy.sqrt(e) <= b:
    count += 1 numpy.sqrt(e) <= b numpy.sqrt(e) numpy.sqrt numpy sqrt e b count += 1 count 1 print(count) print count b = map(int, input().split()) map(int, input().split()) b d = map(int, input().split()) map(int, input().split()) d count += 1 1 count e = c ** 2 + d ** 2 c ** 2 + d ** 2 e a, b = map(int, input().split()) map(int, input().split()) a count = 0 0 count c, d = map(int, input().split()) map(int, input().split()) c
a, b = map(int, input().split())
import numpy
count = 0
for i in range(a):
  c, d = map(int, input().split())
  e = c ** 2 + d ** 2
  if numpy.sqrt(e) <= b:
    count += 1
print(count)