import sys
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines


def dist(x, y): 
    return (x**2+y**2)**0.5
def main():
    N, D = map(int, readline().split())
    cnt = 0
    for _ in range(N):
        x, y = map(int, readline().split())     
        if dist(x, y) <= D:
            cnt += 1
    print(cnt)
if __name__ == '__main__':
    main() import sys sys read = sys.stdin.buffer.read read sys.stdin.buffer.read sys.stdin.buffer sys.stdin sys stdin buffer read readline = sys.stdin.buffer.readline readline sys.stdin.buffer.readline sys.stdin.buffer sys.stdin sys stdin buffer readline readlines = sys.stdin.buffer.readlines readlines sys.stdin.buffer.readlines sys.stdin.buffer sys.stdin sys stdin buffer readlines def dist(x, y): 
    return (x**2+y**2)**0.5 dist return (x**2+y**2)**0.5 (x**2+y**2)**0.5 x**2+y**2 x**2 x 2 y**2 y 2 0.5 x x y y def main():
    N, D = map(int, readline().split())
    cnt = 0
    for _ in range(N):
        x, y = map(int, readline().split())     
        if dist(x, y) <= D:
            cnt += 1
    print(cnt) main N, D = map(int, readline().split()) N map(int, readline().split()) map int readline().split() ().split () readline split D cnt = 0 cnt 0 for _ in range(N):
        x, y = map(int, readline().split())     
        if dist(x, y) <= D:
            cnt += 1
     _ range(N) range N x, y = map(int, readline().split()) x map(int, readline().split()) map int readline().split() ().split () readline split y if dist(x, y) <= D:
            cnt += 1
     dist(x, y) <= D dist(x, y) dist x y D cnt += 1 cnt 1 print(cnt) print cnt if __name__ == '__main__':
    main() __name__ == '__main__' __name__ '__main__' main() main def main():
    N, D = map(int, readline().split())
    cnt = 0
    for _ in range(N):
        x, y = map(int, readline().split())     
        if dist(x, y) <= D:
            cnt += 1
    print(cnt) def main():
    N, D = map(int, readline().split())
    cnt = 0
    for _ in range(N):
        x, y = map(int, readline().split())     
        if dist(x, y) <= D:
            cnt += 1
    print(cnt) main read = sys.stdin.buffer.read sys.stdin.buffer.read read readline = sys.stdin.buffer.readline sys.stdin.buffer.readline readline def dist(x, y): 
    return (x**2+y**2)**0.5 def dist(x, y): 
    return (x**2+y**2)**0.5 dist readlines = sys.stdin.buffer.readlines sys.stdin.buffer.readlines readlines
import sys
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines


def dist(x, y): 
    return (x**2+y**2)**0.5
def main():
    N, D = map(int, readline().split())
    cnt = 0
    for _ in range(N):
        x, y = map(int, readline().split())     
        if dist(x, y) <= D:
            cnt += 1
    print(cnt)
if __name__ == '__main__':
    main()
