import sys
read = sys.stdin.read
#readlines = sys.stdin.readlines
def main():
    n, d = map(int, input().split())
    r = 0
    m = map(int, read().split())
    ab = zip(m, m)
    d2 = d**2
    for a, b in ab:
        r += (a ** 2 + b ** 2) <= d2
    print(r)

if __name__ == '__main__':
    main() import sys sys read = sys.stdin.read read sys.stdin.read sys.stdin sys stdin read def main():
    n, d = map(int, input().split())
    r = 0
    m = map(int, read().split())
    ab = zip(m, m)
    d2 = d**2
    for a, b in ab:
        r += (a ** 2 + b ** 2) <= d2
    print(r) main n, d = map(int, input().split()) n map(int, input().split()) map int input().split() ().split () input split d r = 0 r 0 m = map(int, read().split()) m map(int, read().split()) map int read().split() ().split () read split ab = zip(m, m) ab zip(m, m) zip m m d2 = d**2 d2 d**2 d 2 for a, b in ab:
        r += (a ** 2 + b ** 2) <= d2
     a b ab r += (a ** 2 + b ** 2) <= d2 r (a ** 2 + b ** 2) <= d2 a ** 2 + b ** 2 a ** 2 a 2 b ** 2 b 2 d2 print(r) print r if __name__ == '__main__':
    main() __name__ == '__main__' __name__ '__main__' main() main def main():
    n, d = map(int, input().split())
    r = 0
    m = map(int, read().split())
    ab = zip(m, m)
    d2 = d**2
    for a, b in ab:
        r += (a ** 2 + b ** 2) <= d2
    print(r) def main():
    n, d = map(int, input().split())
    r = 0
    m = map(int, read().split())
    ab = zip(m, m)
    d2 = d**2
    for a, b in ab:
        r += (a ** 2 + b ** 2) <= d2
    print(r) main read = sys.stdin.read sys.stdin.read read
import sys
read = sys.stdin.read
#readlines = sys.stdin.readlines
def main():
    n, d = map(int, input().split())
    r = 0
    m = map(int, read().split())
    ab = zip(m, m)
    d2 = d**2
    for a, b in ab:
        r += (a ** 2 + b ** 2) <= d2
    print(r)

if __name__ == '__main__':
    main()