def main():
    n, d = map(int, input().split())

    count = 0
    for _ in range(n):
        x, y = map(int, input().split())
        if (x**2 + y**2) ** 0.5 <= d:
            count += 1

    print(count)


if __name__ == '__main__':
    main() def main():
    n, d = map(int, input().split())

    count = 0
    for _ in range(n):
        x, y = map(int, input().split())
        if (x**2 + y**2) ** 0.5 <= 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 count = 0 count 0 for _ in range(n):
        x, y = map(int, input().split())
        if (x**2 + y**2) ** 0.5 <= d:
            count += 1

     _ range(n) range n x, y = map(int, input().split()) x map(int, input().split()) map int input().split() ().split () input split y if (x**2 + y**2) ** 0.5 <= d:
            count += 1

     (x**2 + y**2) ** 0.5 <= d (x**2 + y**2) ** 0.5 x**2 + y**2 x**2 x 2 y**2 y 2 0.5 d count += 1 count 1 print(count) print count if __name__ == '__main__':
    main() __name__ == '__main__' __name__ '__main__' main() main def main():
    n, d = map(int, input().split())

    count = 0
    for _ in range(n):
        x, y = map(int, input().split())
        if (x**2 + y**2) ** 0.5 <= d:
            count += 1

    print(count) def main():
    n, d = map(int, input().split())

    count = 0
    for _ in range(n):
        x, y = map(int, input().split())
        if (x**2 + y**2) ** 0.5 <= d:
            count += 1

    print(count) main
def main():
    n, d = map(int, input().split())

    count = 0
    for _ in range(n):
        x, y = map(int, input().split())
        if (x**2 + y**2) ** 0.5 <= d:
            count += 1

    print(count)


if __name__ == '__main__':
    main()
