import sys

read = sys.stdin.read

readlines = sys.stdin.readlines

from math import sqrt

def main():

    n, d = list(map(int, input().split()))

    m = list(map(int, read().split()))

    ab = list(zip(m, m))

    r = 0

    for a, b in ab:

        dis = sqrt(a**2 + b**2)

        r += dis <= d



    print(r)



if __name__ == '__main__':

    main()

import sys

read = sys.stdin.read

#readlines = sys.stdin.readlines

def main():

    n, d = list(map(int, input().split()))

    r = 0

    m = list(map(int, read().split()))

    ab = list(zip(m, m))

    d2 = d**2

    for a, b in ab:

        r += (a ** 2 + b ** 2) <= d2

    print(r)



if __name__ == '__main__':

    main()
import sys

read = sys.stdin.read
readlines = sys.stdin.readlines
from math import sqrt


def main():
    n, d = list(map(int, input().split()))
    m = list(map(int, read().split()))
    ab = list(zip(m, m))
    r = 0
    for a, b in ab:
        dis = sqrt(a**2 + b**2)
        r += dis <= d
    print(r)


if __name__ == "__main__":
    main()

import sys

read = sys.stdin.read
# readlines = sys.stdin.readlines
def main():
    n, d = list(map(int, input().split()))
    r = 0
    m = list(map(int, read().split()))
    ab = list(zip(m, m))
    d2 = d**2
    for a, b in ab:
        r += (a**2 + b**2) <= d2
    print(r)


if __name__ == "__main__":
    main()

-readlines = sys.stdin.readlines -from math import sqrt - - +# readlines = sys.stdin.readlines +    r = 0 -    r = 0 +    d2 = d**2 -        dis = sqrt(a**2 + b**2) -        r += dis <= d +        r += (a**2 + b**2) <= d2