import math

N, D = map(int, input().split())
count = 0

for i in range(N):
  x, y = map(int, input().split())
  d = math.sqrt(x**2 + y**2)
  
  if d<=D:
    count += 1
    
print(count) import math math N, D = map(int, input().split()) N map(int, input().split()) map int input().split() ().split () input split D count = 0 count 0 for i in range(N):
  x, y = map(int, input().split())
  d = math.sqrt(x**2 + y**2)
  
  if d<=D:
    count += 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 = math.sqrt(x**2 + y**2) d math.sqrt(x**2 + y**2) math.sqrt math sqrt x**2 + y**2 x**2 x 2 y**2 y 2 if d<=D:
    count += 1
     d<=D d D count += 1 count 1 print(count) print count N, D = map(int, input().split()) map(int, input().split()) N count = 0 0 count count += 1 1 count d = math.sqrt(x**2 + y**2) math.sqrt(x**2 + y**2) d y = map(int, input().split()) map(int, input().split()) y x, y = map(int, input().split()) map(int, input().split()) x D = map(int, input().split()) map(int, input().split()) D
import math

N, D = map(int, input().split())
count = 0

for i in range(N):
  x, y = map(int, input().split())
  d = math.sqrt(x**2 + y**2)
  
  if d<=D:
    count += 1
    
print(count)
