def distance(x, y):
    return (x ** 2 + y ** 2) ** (1 / 2)


def main():
    n, d = map(int, input().split())
    xy_lst = [list(map(int, input().split())) for _ in range(n)]
    count = 0

    for i in range(n):
        x = xy_lst[i][0]
        y = xy_lst[i][1]
        if distance(x, y) <= d:
            count += 1

    print(count)


if __name__ == '__main__':
    main() def distance(x, y):
    return (x ** 2 + y ** 2) ** (1 / 2) distance return (x ** 2 + y ** 2) ** (1 / 2) (x ** 2 + y ** 2) ** (1 / 2) x ** 2 + y ** 2 x ** 2 x 2 y ** 2 y 2 1 / 2 1 2 x x y y def main():
    n, d = map(int, input().split())
    xy_lst = [list(map(int, input().split())) for _ in range(n)]
    count = 0

    for i in range(n):
        x = xy_lst[i][0]
        y = xy_lst[i][1]
        if distance(x, y) <= d:
            count += 1

    print(count) main 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_lst = [list(map(int, input().split())) for _ in range(n)] xy_lst [list(map(int, input().split())) for _ in range(n)] count = 0 count 0 for i in range(n):
        x = xy_lst[i][0]
        y = xy_lst[i][1]
        if distance(x, y) <= d:
            count += 1

     i range(n) range n x = xy_lst[i][0] x xy_lst[i][0] [i] xy_lst i 0 y = xy_lst[i][1] y xy_lst[i][1] [i] xy_lst i 1 if distance(x, y) <= d:
            count += 1

     distance(x, y) <= d distance(x, y) distance x y d count += 1 count 1 print(count) print count if __name__ == '__main__':
    main() __name__ == '__main__' __name__ '__main__' main() main def distance(x, y):
    return (x ** 2 + y ** 2) ** (1 / 2) def distance(x, y):
    return (x ** 2 + y ** 2) ** (1 / 2) distance def main():
    n, d = map(int, input().split())
    xy_lst = [list(map(int, input().split())) for _ in range(n)]
    count = 0

    for i in range(n):
        x = xy_lst[i][0]
        y = xy_lst[i][1]
        if distance(x, y) <= d:
            count += 1

    print(count) def main():
    n, d = map(int, input().split())
    xy_lst = [list(map(int, input().split())) for _ in range(n)]
    count = 0

    for i in range(n):
        x = xy_lst[i][0]
        y = xy_lst[i][1]
        if distance(x, y) <= d:
            count += 1

    print(count) main
def distance(x, y):
    return (x ** 2 + y ** 2) ** (1 / 2)


def main():
    n, d = map(int, input().split())
    xy_lst = [list(map(int, input().split())) for _ in range(n)]
    count = 0

    for i in range(n):
        x = xy_lst[i][0]
        y = xy_lst[i][1]
        if distance(x, y) <= d:
            count += 1

    print(count)


if __name__ == '__main__':
    main()