# B - Distance

from math import sqrt





def main():

    N, D, *XY = list(map(int, open(0).read().split()))

    res = sum(sqrt(x ** 2 + y ** 2) <= D for x, y in zip(*[iter(XY)] * 2))

    print(res)





if __name__ == "__main__":

    main()

# B - Distance

def main():

    N, D, *XY = list(map(int, open(0).read().split()))

    res = sum(x ** 2 + y ** 2 <= D ** 2 for x, y in zip(*[iter(XY)] * 2))

    print(res)





if __name__ == "__main__":

    main()

# B - Distance
from math import sqrt


def main():
    N, D, *XY = list(map(int, open(0).read().split()))
    res = sum(sqrt(x**2 + y**2) <= D for x, y in zip(*[iter(XY)] * 2))
    print(res)


if __name__ == "__main__":
    main()

# B - Distance
def main():
    N, D, *XY = list(map(int, open(0).read().split()))
    res = sum(x**2 + y**2 <= D**2 for x, y in zip(*[iter(XY)] * 2))
    print(res)


if __name__ == "__main__":
    main()

-from math import sqrt - - -    res = sum(sqrt(x**2 + y**2) <= D for x, y in zip(*[iter(XY)] * 2)) +    res = sum(x**2 + y**2 <= D**2 for x, y in zip(*[iter(XY)] * 2))