import math

N, D = map(int,input().split())
XY = list(list(map(int,input().split())) for _ in range(N))

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

N, D = map(int,input().split())
XY = list(list(map(int,input().split())) for _ in range(N))

count = 0
for i in range(N):
  if math.sqrt(XY[i][0] ** 2 + XY[i][1] ** 2) <= D: count += 1

print(count)