import math
n, d = map(int, input().split())
xy = [list(map(int, input().split())) for _ in range(n)]
count = 0

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

print(count) import math math n, d = map(int, input().split()) n map(int, input().split()) map int input().split() ().split () input split d list(map(int, input().split())) for _ in range(n) for _ in range(n) _ range(n) range n for _ in range(n) list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split xy = [list(map(int, input().split())) for _ in range(n)] xy [list(map(int, input().split())) for _ in range(n)] count = 0 count 0 for i in range(n):
    count = count + 1 if math.sqrt(xy[i][0]**2 + xy[i][1]**2) <= d else count i range(n) range n count = count + 1 if math.sqrt(xy[i][0]**2 + xy[i][1]**2) <= d else count count count + 1 if math.sqrt(xy[i][0]**2 + xy[i][1]**2) <= d else count math.sqrt(xy[i][0]**2 + xy[i][1]**2) <= d math.sqrt(xy[i][0]**2 + xy[i][1]**2) math.sqrt math sqrt xy[i][0]**2 + xy[i][1]**2 xy[i][0]**2 xy[i][0] [i] xy i 0 2 xy[i][1]**2 xy[i][1] [i] xy i 1 2 d count + 1 count 1 count print(count) print count count = 0 0 count xy = [list(map(int, input().split())) for _ in range(n)] [list(map(int, input().split())) for _ in range(n)] xy count = count + 1 if math.sqrt(xy[i][0]**2 + xy[i][1]**2) <= d else count count + 1 if math.sqrt(xy[i][0]**2 + xy[i][1]**2) <= d else count count n, d = map(int, input().split()) map(int, input().split()) n d = map(int, input().split()) map(int, input().split()) d
import math
n, d = map(int, input().split())
xy = [list(map(int, input().split())) for _ in range(n)]
count = 0

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

print(count)
