import math

N, D = [int(x) for x in input().split()]

Z = []
for i in range(N):
  Z.append([int(x) for x in input().split()])


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


print(ans) import math math int(x) for x in input().split() for x in input().split() x input().split() ().split () input split for x in input().split() int(x) int x N, D = [int(x) for x in input().split()] N [int(x) for x in input().split()] D Z = [] Z [] for i in range(N):
  Z.append([int(x) for x in input().split()]) i range(N) range N int(x) for x in input().split() for x in input().split() x input().split() ().split () input split for x in input().split() int(x) int x Z.append([int(x) for x in input().split()]) Z.append Z append [int(x) for x in input().split()] ans = 0 ans 0 for i in range(N):
    if math.sqrt(Z[i][0]**2 + Z[i][1]**2) <= D:
        ans += 1 i range(N) range N if math.sqrt(Z[i][0]**2 + Z[i][1]**2) <= D:
        ans += 1 math.sqrt(Z[i][0]**2 + Z[i][1]**2) <= D math.sqrt(Z[i][0]**2 + Z[i][1]**2) math.sqrt math sqrt Z[i][0]**2 + Z[i][1]**2 Z[i][0]**2 Z[i][0] [i] Z i 0 2 Z[i][1]**2 Z[i][1] [i] Z i 1 2 D ans += 1 ans 1 print(ans) print ans D = [int(x) for x in input().split()] [int(x) for x in input().split()] D N, D = [int(x) for x in input().split()] [int(x) for x in input().split()] N ans += 1 1 ans ans = 0 0 ans Z = [] [] Z
import math

N, D = [int(x) for x in input().split()]

Z = []
for i in range(N):
  Z.append([int(x) for x in input().split()])


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


print(ans)
