def f(n, d, points):
  result = 0
  for val in points:
    temp = val[0] * val[0] + val[1] * val[1]
    if d*d >= temp:
      result += 1
  return result

if __name__ == "__main__":
  nd = list(map(int, input().split()))
  n = nd[0]
  d = nd[1]
  points = [list(map(int, input().split())) for _ in range(n)]
  print(f(n, d, points)) def f(n, d, points):
  result = 0
  for val in points:
    temp = val[0] * val[0] + val[1] * val[1]
    if d*d >= temp:
      result += 1
  return result f result = 0 result 0 for val in points:
    temp = val[0] * val[0] + val[1] * val[1]
    if d*d >= temp:
      result += 1
   val points temp = val[0] * val[0] + val[1] * val[1] temp val[0] * val[0] + val[1] * val[1] val[0] * val[0] val[0] val 0 val[0] val 0 val[1] * val[1] val[1] val 1 val[1] val 1 if d*d >= temp:
      result += 1
   d*d >= temp d*d d d temp result += 1 result 1 return result result n n d d points points if __name__ == "__main__":
  nd = list(map(int, input().split()))
  n = nd[0]
  d = nd[1]
  points = [list(map(int, input().split())) for _ in range(n)]
  print(f(n, d, points)) __name__ == "__main__" __name__ "__main__" nd = list(map(int, input().split())) nd list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split n = nd[0] n nd[0] nd 0 d = nd[1] d nd[1] nd 1 list(map(int, input().split())) for _ in range(n) for _ in range(n) _ range(n) range n for _ in range(n) list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split points = [list(map(int, input().split())) for _ in range(n)] points [list(map(int, input().split())) for _ in range(n)] print(f(n, d, points)) print f(n, d, points) f n d points def f(n, d, points):
  result = 0
  for val in points:
    temp = val[0] * val[0] + val[1] * val[1]
    if d*d >= temp:
      result += 1
  return result def f(n, d, points):
  result = 0
  for val in points:
    temp = val[0] * val[0] + val[1] * val[1]
    if d*d >= temp:
      result += 1
  return result f n = nd[0] nd[0] n d = nd[1] nd[1] d points = [list(map(int, input().split())) for _ in range(n)] [list(map(int, input().split())) for _ in range(n)] points nd = list(map(int, input().split())) list(map(int, input().split())) nd
def f(n, d, points):
  result = 0
  for val in points:
    temp = val[0] * val[0] + val[1] * val[1]
    if d*d >= temp:
      result += 1
  return result

if __name__ == "__main__":
  nd = list(map(int, input().split()))
  n = nd[0]
  d = nd[1]
  points = [list(map(int, input().split())) for _ in range(n)]
  print(f(n, d, points))