import math
if __name__ == "__main__":
    N, D = map(int, input().split())
    ans = 0
    for _ in range(N):
        x, y = map(int, input().split())
        d = math.sqrt(x*x + y*y)
        if d <= D:
            ans += 1
    print(ans) import math math if __name__ == "__main__":
    N, D = map(int, input().split())
    ans = 0
    for _ in range(N):
        x, y = map(int, input().split())
        d = math.sqrt(x*x + y*y)
        if d <= D:
            ans += 1
    print(ans) __name__ == "__main__" __name__ "__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())
        d = math.sqrt(x*x + y*y)
        if d <= D:
            ans += 1
     _ range(N) range N x, y = map(int, input().split()) x map(int, input().split()) map int input().split() ().split () input split y d = math.sqrt(x*x + y*y) d math.sqrt(x*x + y*y) math.sqrt math sqrt x*x + y*y x*x x x y*y y y if d <= D:
            ans += 1
     d <= D d D ans += 1 ans 1 print(ans) print ans N, D = map(int, input().split()) map(int, input().split()) N ans += 1 1 ans x, y = map(int, input().split()) map(int, input().split()) x D = map(int, input().split()) map(int, input().split()) D y = map(int, input().split()) map(int, input().split()) y ans = 0 0 ans d = math.sqrt(x*x + y*y) math.sqrt(x*x + y*y) d
import math
if __name__ == "__main__":
    N, D = map(int, input().split())
    ans = 0
    for _ in range(N):
        x, y = map(int, input().split())
        d = math.sqrt(x*x + y*y)
        if d <= D:
            ans += 1
    print(ans)