import math

n, d = (int(a) for a in input().split())
list_xy = [[int(x) for x in input().split()] for y in range(0, n)]
count = 0

for i in range(0, n):
    dist = math.sqrt(list_xy[i][0] ** 2 + list_xy[i][1] ** 2)
    if dist <= d:
        count += 1

print(count) import math math int(a) for a in input().split() for a in input().split() a input().split() ().split () input split for a in input().split() int(a) int a n, d = (int(a) for a in input().split()) n (int(a) for a in input().split()) d [int(x) for x in input().split()] for y in range(0, n) for y in range(0, n) y range(0, n) range 0 n for y in range(0, n) [int(x) for x in input().split()] list_xy = [[int(x) for x in input().split()] for y in range(0, n)] list_xy [[int(x) for x in input().split()] for y in range(0, n)] count = 0 count 0 for i in range(0, n):
    dist = math.sqrt(list_xy[i][0] ** 2 + list_xy[i][1] ** 2)
    if dist <= d:
        count += 1 i range(0, n) range 0 n dist = math.sqrt(list_xy[i][0] ** 2 + list_xy[i][1] ** 2) dist math.sqrt(list_xy[i][0] ** 2 + list_xy[i][1] ** 2) math.sqrt math sqrt list_xy[i][0] ** 2 + list_xy[i][1] ** 2 list_xy[i][0] ** 2 list_xy[i][0] [i] list_xy i 0 2 list_xy[i][1] ** 2 list_xy[i][1] [i] list_xy i 1 2 if dist <= d:
        count += 1 dist <= d dist d count += 1 count 1 print(count) print count list_xy = [[int(x) for x in input().split()] for y in range(0, n)] [[int(x) for x in input().split()] for y in range(0, n)] list_xy n, d = (int(a) for a in input().split()) (int(a) for a in input().split()) n d = (int(a) for a in input().split()) (int(a) for a in input().split()) d count = 0 0 count dist = math.sqrt(list_xy[i][0] ** 2 + list_xy[i][1] ** 2) math.sqrt(list_xy[i][0] ** 2 + list_xy[i][1] ** 2) dist count += 1 1 count
import math

n, d = (int(a) for a in input().split())
list_xy = [[int(x) for x in input().split()] for y in range(0, n)]
count = 0

for i in range(0, n):
    dist = math.sqrt(list_xy[i][0] ** 2 + list_xy[i][1] ** 2)
    if dist <= d:
        count += 1

print(count)