import math
n,d = list(map(int, input().split()))
c=0
for i in range(n):
  x,y = list(map(int, input().split()))
  if x*x + y*y <= d*d:
    c += 1
  a=math.sqrt(10)
print(c) import math math 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 c=0 c 0 for i in range(n):
  x,y = list(map(int, input().split()))
  if x*x + y*y <= d*d:
    c += 1
  a=math.sqrt(10) 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*x + y*y <= d*d:
    c += 1
   x*x + y*y <= d*d x*x + y*y x*x x x y*y y y d*d d d c += 1 c 1 a=math.sqrt(10) a math.sqrt(10) math.sqrt math sqrt 10 print(c) print c a=math.sqrt(10) math.sqrt(10) a 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 c += 1 1 c c=0 0 c n,d = list(map(int, input().split())) list(map(int, input().split())) n y = list(map(int, input().split())) list(map(int, input().split())) y
import math
n,d = list(map(int, input().split()))
c=0
for i in range(n):
  x,y = list(map(int, input().split()))
  if x*x + y*y <= d*d:
    c += 1
  a=math.sqrt(10)
print(c)