import math
n,d = map(int,input().split())
x = [list(map(int,input().split()))for _ in range(n)]

ans = 0

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

ans = 0

for i in range(n):
  r = math.sqrt(x[i][0]**2+x[i][1]**2)
  if r <= d:
    ans += 1

print(ans)