import sys

N, D = map(int,input().split())
X = [0]*N
Y = [0]*N
for i in range(N):
  X[i], Y[i] = map(int,input().split())

def solve():
  ret = 0
  for i in range(N):
    if X[i]*X[i]+Y[i]*Y[i] <= D*D:
      ret += 1
  return ret

print(solve()) import sys sys 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()) 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 def solve():
  ret = 0
  for i in range(N):
    if X[i]*X[i]+Y[i]*Y[i] <= D*D:
      ret += 1
  return ret solve ret = 0 ret 0 for i in range(N):
    if X[i]*X[i]+Y[i]*Y[i] <= D*D:
      ret += 1
   i range(N) range N if X[i]*X[i]+Y[i]*Y[i] <= D*D:
      ret += 1
   X[i]*X[i]+Y[i]*Y[i] <= D*D X[i]*X[i]+Y[i]*Y[i] X[i]*X[i] X[i] X i X[i] X i Y[i]*Y[i] Y[i] Y i Y[i] Y i D*D D D ret += 1 ret 1 return ret ret print(solve()) print solve() solve def solve():
  ret = 0
  for i in range(N):
    if X[i]*X[i]+Y[i]*Y[i] <= D*D:
      ret += 1
  return ret def solve():
  ret = 0
  for i in range(N):
    if X[i]*X[i]+Y[i]*Y[i] <= D*D:
      ret += 1
  return ret solve Y = [0]*N [0]*N Y X = [0]*N [0]*N X D = map(int,input().split()) map(int,input().split()) D N, D = map(int,input().split()) map(int,input().split()) N
import sys

N, D = map(int,input().split())
X = [0]*N
Y = [0]*N
for i in range(N):
  X[i], Y[i] = map(int,input().split())

def solve():
  ret = 0
  for i in range(N):
    if X[i]*X[i]+Y[i]*Y[i] <= D*D:
      ret += 1
  return ret

print(solve())