def main():

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

    res = 0

    for _ in range(n):

        x, y = list(map(int, input().split()))

        if (x**2+y**2)**.5 <= d:

            res += 1

    print(res)

main()
import sys

input = sys.stdin.readline



def main():

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

    res = 0

    for _ in range(n):

        x, y = list(map(int, input().split()))

        if (x**2+y**2)**.5 <= d:

            res += 1

    print(res)

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


main()

import sys

input = sys.stdin.readline


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


main()

+import sys + +input = sys.stdin.readline + +