n, d = map(int, input().split())
lst =[list(map(int,input().split())) for i in range(n)]

count = 0

for lst_i in lst:
    if lst_i[0]**2 + lst_i[1]**2 <= d**2:
        count += 1

print(count) 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 i in range(n) for i in range(n) i range(n) range n for i in range(n) list(map(int,input().split())) list map(int,input().split()) map int input().split() ().split () input split lst =[list(map(int,input().split())) for i in range(n)] lst [list(map(int,input().split())) for i in range(n)] count = 0 count 0 for lst_i in lst:
    if lst_i[0]**2 + lst_i[1]**2 <= d**2:
        count += 1 lst_i lst if lst_i[0]**2 + lst_i[1]**2 <= d**2:
        count += 1 lst_i[0]**2 + lst_i[1]**2 <= d**2 lst_i[0]**2 + lst_i[1]**2 lst_i[0]**2 lst_i[0] lst_i 0 2 lst_i[1]**2 lst_i[1] lst_i 1 2 d**2 d 2 count += 1 count 1 print(count) print count n, d = map(int, input().split()) map(int, input().split()) n d = map(int, input().split()) map(int, input().split()) d lst =[list(map(int,input().split())) for i in range(n)] [list(map(int,input().split())) for i in range(n)] lst count += 1 1 count count = 0 0 count
n, d = map(int, input().split())
lst =[list(map(int,input().split())) for i in range(n)]

count = 0

for lst_i in lst:
    if lst_i[0]**2 + lst_i[1]**2 <= d**2:
        count += 1

print(count)