import math

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

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

print(ans) import math math N, D = map(int, input().split()) N map(int, input().split()) map int input().split() ().split () input split D list(map(int, input().split())) for _ in range(N) for _ in range(N) _ range(N) range N for _ in range(N) list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split L = [list(map(int, input().split())) for _ in range(N)] L [list(map(int, input().split())) for _ in range(N)] ans = 0 ans 0 for i in range(N):
  dist = L[i][0] ** 2 + L[i][1] ** 2
  if math.sqrt(dist) <= D:
    ans += 1 i range(N) range N dist = L[i][0] ** 2 + L[i][1] ** 2 dist L[i][0] ** 2 + L[i][1] ** 2 L[i][0] ** 2 L[i][0] [i] L i 0 2 L[i][1] ** 2 L[i][1] [i] L i 1 2 if math.sqrt(dist) <= D:
    ans += 1 math.sqrt(dist) <= D math.sqrt(dist) math.sqrt math sqrt dist D ans += 1 ans 1 print(ans) print ans L = [list(map(int, input().split())) for _ in range(N)] [list(map(int, input().split())) for _ in range(N)] L ans = 0 0 ans D = map(int, input().split()) map(int, input().split()) D dist = L[i][0] ** 2 + L[i][1] ** 2 L[i][0] ** 2 + L[i][1] ** 2 dist N, D = map(int, input().split()) map(int, input().split()) N ans += 1 1 ans
import math

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

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

print(ans)