def resolve():
    from math import sqrt
    n, d = list(map(int, input().split()))
    ans = 0

    for _ in range(n):
        x, y = list(map(int, input().split()))
        if sqrt(x ** 2 + y ** 2) <= d:
            ans += 1
    print(ans)

resolve() def resolve():
    from math import sqrt
    n, d = list(map(int, input().split()))
    ans = 0

    for _ in range(n):
        x, y = list(map(int, input().split()))
        if sqrt(x ** 2 + y ** 2) <= d:
            ans += 1
    print(ans) resolve from math import sqrt n, d = list(map(int, input().split())) n list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split d ans = 0 ans 0 for _ in range(n):
        x, y = list(map(int, input().split()))
        if sqrt(x ** 2 + y ** 2) <= d:
            ans += 1
     _ range(n) range n x, y = list(map(int, input().split())) x list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split y if sqrt(x ** 2 + y ** 2) <= d:
            ans += 1
     sqrt(x ** 2 + y ** 2) <= d sqrt(x ** 2 + y ** 2) sqrt x ** 2 + y ** 2 x ** 2 x 2 y ** 2 y 2 d ans += 1 ans 1 print(ans) print ans resolve() resolve def resolve():
    from math import sqrt
    n, d = list(map(int, input().split()))
    ans = 0

    for _ in range(n):
        x, y = list(map(int, input().split()))
        if sqrt(x ** 2 + y ** 2) <= d:
            ans += 1
    print(ans) def resolve():
    from math import sqrt
    n, d = list(map(int, input().split()))
    ans = 0

    for _ in range(n):
        x, y = list(map(int, input().split()))
        if sqrt(x ** 2 + y ** 2) <= d:
            ans += 1
    print(ans) resolve
def resolve():
    from math import sqrt
    n, d = list(map(int, input().split()))
    ans = 0

    for _ in range(n):
        x, y = list(map(int, input().split()))
        if sqrt(x ** 2 + y ** 2) <= d:
            ans += 1
    print(ans)

resolve()