def solve():
    import math
    N,D = [int(i) for i in input().split()]
    ans = 0
    for i in range(N):
        x,y = [int(i) for i in input().split()]
        if math.sqrt(x**2+y**2) <= D:
            ans += 1
    print(ans)

if __name__ == "__main__":
    solve() def solve():
    import math
    N,D = [int(i) for i in input().split()]
    ans = 0
    for i in range(N):
        x,y = [int(i) for i in input().split()]
        if math.sqrt(x**2+y**2) <= D:
            ans += 1
    print(ans) solve import math math int(i) for i in input().split() for i in input().split() i input().split() ().split () input split for i in input().split() int(i) int i N,D = [int(i) for i in input().split()] N [int(i) for i in input().split()] D ans = 0 ans 0 for i in range(N):
        x,y = [int(i) for i in input().split()]
        if math.sqrt(x**2+y**2) <= D:
            ans += 1
     i range(N) range N int(i) for i in input().split() for i in input().split() i input().split() ().split () input split for i in input().split() int(i) int i x,y = [int(i) for i in input().split()] x [int(i) for i in input().split()] y if math.sqrt(x**2+y**2) <= D:
            ans += 1
     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 ans += 1 ans 1 print(ans) print ans if __name__ == "__main__":
    solve() __name__ == "__main__" __name__ "__main__" solve() solve def solve():
    import math
    N,D = [int(i) for i in input().split()]
    ans = 0
    for i in range(N):
        x,y = [int(i) for i in input().split()]
        if math.sqrt(x**2+y**2) <= D:
            ans += 1
    print(ans) def solve():
    import math
    N,D = [int(i) for i in input().split()]
    ans = 0
    for i in range(N):
        x,y = [int(i) for i in input().split()]
        if math.sqrt(x**2+y**2) <= D:
            ans += 1
    print(ans) solve
def solve():
    import math
    N,D = [int(i) for i in input().split()]
    ans = 0
    for i in range(N):
        x,y = [int(i) for i in input().split()]
        if math.sqrt(x**2+y**2) <= D:
            ans += 1
    print(ans)

if __name__ == "__main__":
    solve()