import math


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

    print(ans)


if __name__ == '__main__':
    main() import math math def main():
    n, d = map(int, input().split())
    ans = 0
    for _ in range(n):
        x, y = map(int, input().split())
        ans += 1 if math.sqrt(x**2 + y**2) <= d else 0

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

     _ range(n) range n x, y = map(int, input().split()) x map(int, input().split()) map int input().split() ().split () input split y ans += 1 if math.sqrt(x**2 + y**2) <= d else 0 ans 1 if math.sqrt(x**2 + y**2) <= d else 0 math.sqrt(x**2 + y**2) <= d math.sqrt(x**2 + y**2) math.sqrt math sqrt x**2 + y**2 x**2 x 2 y**2 y 2 d 1 0 print(ans) print ans if __name__ == '__main__':
    main() __name__ == '__main__' __name__ '__main__' main() main def main():
    n, d = map(int, input().split())
    ans = 0
    for _ in range(n):
        x, y = map(int, input().split())
        ans += 1 if math.sqrt(x**2 + y**2) <= d else 0

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

    print(ans) main
import math


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

    print(ans)


if __name__ == '__main__':
    main()
