n,d = map(int, input().split())
cnt = 0

for i in range(n):
    x,y = map(int, input().split())
    t = (x**2 + y**2) ** 0.5

    cnt += t <= d

print(cnt) n,d = map(int, input().split()) n map(int, input().split()) map int input().split() ().split () input split d cnt = 0 cnt 0 for i in range(n):
    x,y = map(int, input().split())
    t = (x**2 + y**2) ** 0.5

    cnt += t <= d i range(n) range n x,y = map(int, input().split()) x map(int, input().split()) map int input().split() ().split () input split y t = (x**2 + y**2) ** 0.5 t (x**2 + y**2) ** 0.5 x**2 + y**2 x**2 x 2 y**2 y 2 0.5 cnt += t <= d cnt t <= d t d print(cnt) print cnt x,y = map(int, input().split()) map(int, input().split()) x cnt = 0 0 cnt y = map(int, input().split()) map(int, input().split()) y d = map(int, input().split()) map(int, input().split()) d n,d = map(int, input().split()) map(int, input().split()) n cnt += t <= d t <= d cnt t = (x**2 + y**2) ** 0.5 (x**2 + y**2) ** 0.5 t
n,d = map(int, input().split())
cnt = 0

for i in range(n):
    x,y = map(int, input().split())
    t = (x**2 + y**2) ** 0.5

    cnt += t <= d

print(cnt)