import numpy as np
n,d = map(int,input().split())
s = 0
for i in range(n):
  x,y = map(int,input().split())
  D = np.sqrt(x**2+y**2)
  if d >= D:
    s += 1
    
print(s)     import numpy as np numpy n,d = map(int,input().split()) n map(int,input().split()) map int input().split() ().split () input split d s = 0 s 0 for i in range(n):
  x,y = map(int,input().split())
  D = np.sqrt(x**2+y**2)
  if d >= D:
    s += 1
     i range(n) range n x,y = map(int,input().split()) x map(int,input().split()) map int input().split() ().split () input split y D = np.sqrt(x**2+y**2) D np.sqrt(x**2+y**2) np.sqrt np sqrt x**2+y**2 x**2 x 2 y**2 y 2 if d >= D:
    s += 1
     d >= D d D s += 1 s 1 print(s) print s n,d = map(int,input().split()) map(int,input().split()) n s += 1 1 s s = 0 0 s y = map(int,input().split()) map(int,input().split()) y d = map(int,input().split()) map(int,input().split()) d x,y = map(int,input().split()) map(int,input().split()) x D = np.sqrt(x**2+y**2) np.sqrt(x**2+y**2) D
import numpy as np
n,d = map(int,input().split())
s = 0
for i in range(n):
  x,y = map(int,input().split())
  D = np.sqrt(x**2+y**2)
  if d >= D:
    s += 1
    
print(s)    