import math
n,d=map(int,input().split())
L=[list(map(int, input().split())) for i in range(n)]
x=0
for i in range(n):
  if math.sqrt(L[i][0]**2+L[i][1]**2)<=d:
    x+=1
  else:
    pass
print(x) import math math n,d=map(int,input().split()) n map(int,input().split()) map int input().split() ().split () input split d list(map(int, input().split())) for i in range(n) for i in range(n) i range(n) range n for i in range(n) list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split L=[list(map(int, input().split())) for i in range(n)] L [list(map(int, input().split())) for i in range(n)] x=0 x 0 for i in range(n):
  if math.sqrt(L[i][0]**2+L[i][1]**2)<=d:
    x+=1
  else:
    pass i range(n) range n if math.sqrt(L[i][0]**2+L[i][1]**2)<=d:
    x+=1
  else:
    pass math.sqrt(L[i][0]**2+L[i][1]**2)<=d math.sqrt(L[i][0]**2+L[i][1]**2) math.sqrt math sqrt L[i][0]**2+L[i][1]**2 L[i][0]**2 L[i][0] [i] L i 0 2 L[i][1]**2 L[i][1] [i] L i 1 2 d x+=1 x 1 print(x) print x L=[list(map(int, input().split())) for i in range(n)] [list(map(int, input().split())) for i in range(n)] L n,d=map(int,input().split()) map(int,input().split()) n x+=1 1 x x=0 0 x d=map(int,input().split()) map(int,input().split()) d
import math
n,d=map(int,input().split())
L=[list(map(int, input().split())) for i in range(n)]
x=0
for i in range(n):
  if math.sqrt(L[i][0]**2+L[i][1]**2)<=d:
    x+=1
  else:
    pass
print(x)