import math
n,d = map(int,input().split())
#l = list(map(int, input().split()))
x = [0] * n
y = [0] * n

for i in range(n):
    x[i], y[i] = map(int, input().split())
#print(n,d,x,y)

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

for i in range(n):
    x[i], y[i] = map(int, input().split())
#print(n,d,x,y)

count = 0
for i in range(n):
  #print(math.sqrt(x[i]**2 + y[i]**2))
  if math.sqrt(x[i]**2 + y[i]**2)<=d:
    count += 1
print(count)