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