input_line = input().split()
n = int(input_line[0])
d = int(input_line[1])

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

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

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

print(count)