n, d = [int(i) for i in input().split()]
cnt = 0
for _ in range(n):
  x, y = [int(i) for i in input().split()]
  if x**2 + y**2 <= d**2:
    cnt += 1
print(cnt) int(i) for i in input().split() for i in input().split() i input().split() ().split () input split for i in input().split() int(i) int i n, d = [int(i) for i in input().split()] n [int(i) for i in input().split()] d cnt = 0 cnt 0 for _ in range(n):
  x, y = [int(i) for i in input().split()]
  if x**2 + y**2 <= d**2:
    cnt += 1 _ range(n) range n int(i) for i in input().split() for i in input().split() i input().split() ().split () input split for i in input().split() int(i) int i x, y = [int(i) for i in input().split()] x [int(i) for i in input().split()] y if x**2 + y**2 <= d**2:
    cnt += 1 x**2 + y**2 <= d**2 x**2 + y**2 x**2 x 2 y**2 y 2 d**2 d 2 cnt += 1 cnt 1 print(cnt) print cnt cnt += 1 1 cnt y = [int(i) for i in input().split()] [int(i) for i in input().split()] y n, d = [int(i) for i in input().split()] [int(i) for i in input().split()] n cnt = 0 0 cnt d = [int(i) for i in input().split()] [int(i) for i in input().split()] d x, y = [int(i) for i in input().split()] [int(i) for i in input().split()] x
n, d = [int(i) for i in input().split()]
cnt = 0
for _ in range(n):
  x, y = [int(i) for i in input().split()]
  if x**2 + y**2 <= d**2:
    cnt += 1
print(cnt)