#!/usr/bin/env python3
import sys
from itertools import chain


def solve(N: int, D: int, X: "List[int]", Y: "List[int]"):
    D2 = D * D
    answer = 0
    for x, y in zip(X, Y):
        if x * x + y * y <= D2:
            answer += 1
    return answer


def main():
    tokens = chain(*(line.split() for line in sys.stdin))
    # N, D, X, Y = map(int, line.split())
    N = int(next(tokens))  # type: int
    D = int(next(tokens))  # type: int
    X = [int()] * (N)  # type: "List[int]"
    Y = [int()] * (N)  # type: "List[int]"
    for i in range(N):
        X[i] = int(next(tokens))
        Y[i] = int(next(tokens))
    answer = solve(N, D, X, Y)
    print(answer)


if __name__ == "__main__":
    main() import sys sys from itertools import chain def solve(N: int, D: int, X: "List[int]", Y: "List[int]"):
    D2 = D * D
    answer = 0
    for x, y in zip(X, Y):
        if x * x + y * y <= D2:
            answer += 1
    return answer solve D2 = D * D D2 D * D D D answer = 0 answer 0 for x, y in zip(X, Y):
        if x * x + y * y <= D2:
            answer += 1
     x y zip(X, Y) zip X Y if x * x + y * y <= D2:
            answer += 1
     x * x + y * y <= D2 x * x + y * y x * x x x y * y y y D2 answer += 1 answer 1 return answer answer N: int N D: int D X: "List[int]" X Y: "List[int]" Y def main():
    tokens = chain(*(line.split() for line in sys.stdin))
    # N, D, X, Y = map(int, line.split())
    N = int(next(tokens))  # type: int
    D = int(next(tokens))  # type: int
    X = [int()] * (N)  # type: "List[int]"
    Y = [int()] * (N)  # type: "List[int]"
    for i in range(N):
        X[i] = int(next(tokens))
        Y[i] = int(next(tokens))
    answer = solve(N, D, X, Y)
    print(answer) main line.split() for line in sys.stdin for line in sys.stdin line sys.stdin sys stdin for line in sys.stdin line.split() line.split line split tokens = chain(*(line.split() for line in sys.stdin)) tokens chain(*(line.split() for line in sys.stdin)) chain *(line.split() for line in sys.stdin) (line.split() for line in sys.stdin) N = int(next(tokens)) N int(next(tokens)) int next(tokens) next tokens D = int(next(tokens)) D int(next(tokens)) int next(tokens) next tokens X = [int()] * (N) X [int()] * (N) [int()] int() int N Y = [int()] * (N) Y [int()] * (N) [int()] int() int N for i in range(N):
        X[i] = int(next(tokens))
        Y[i] = int(next(tokens))
     i range(N) range N X[i] = int(next(tokens)) X[i] X i int(next(tokens)) int next(tokens) next tokens Y[i] = int(next(tokens)) Y[i] Y i int(next(tokens)) int next(tokens) next tokens answer = solve(N, D, X, Y) answer solve(N, D, X, Y) solve N D X Y print(answer) print answer if __name__ == "__main__":
    main() __name__ == "__main__" __name__ "__main__" main() main def main():
    tokens = chain(*(line.split() for line in sys.stdin))
    # N, D, X, Y = map(int, line.split())
    N = int(next(tokens))  # type: int
    D = int(next(tokens))  # type: int
    X = [int()] * (N)  # type: "List[int]"
    Y = [int()] * (N)  # type: "List[int]"
    for i in range(N):
        X[i] = int(next(tokens))
        Y[i] = int(next(tokens))
    answer = solve(N, D, X, Y)
    print(answer) def main():
    tokens = chain(*(line.split() for line in sys.stdin))
    # N, D, X, Y = map(int, line.split())
    N = int(next(tokens))  # type: int
    D = int(next(tokens))  # type: int
    X = [int()] * (N)  # type: "List[int]"
    Y = [int()] * (N)  # type: "List[int]"
    for i in range(N):
        X[i] = int(next(tokens))
        Y[i] = int(next(tokens))
    answer = solve(N, D, X, Y)
    print(answer) main def solve(N: int, D: int, X: "List[int]", Y: "List[int]"):
    D2 = D * D
    answer = 0
    for x, y in zip(X, Y):
        if x * x + y * y <= D2:
            answer += 1
    return answer def solve(N: int, D: int, X: "List[int]", Y: "List[int]"):
    D2 = D * D
    answer = 0
    for x, y in zip(X, Y):
        if x * x + y * y <= D2:
            answer += 1
    return answer solve
#!/usr/bin/env python3
import sys
from itertools import chain


def solve(N: int, D: int, X: "List[int]", Y: "List[int]"):
    D2 = D * D
    answer = 0
    for x, y in zip(X, Y):
        if x * x + y * y <= D2:
            answer += 1
    return answer


def main():
    tokens = chain(*(line.split() for line in sys.stdin))
    # N, D, X, Y = map(int, line.split())
    N = int(next(tokens))  # type: int
    D = int(next(tokens))  # type: int
    X = [int()] * (N)  # type: "List[int]"
    Y = [int()] * (N)  # type: "List[int]"
    for i in range(N):
        X[i] = int(next(tokens))
        Y[i] = int(next(tokens))
    answer = solve(N, D, X, Y)
    print(answer)


if __name__ == "__main__":
    main()
