def solve(string):
    n, d, *xy = map(int, string.split())
    return str(sum([1 if x**2 + y**2 <= d**2 else 0 for x, y in zip(*[iter(xy)] * 2)]))


if __name__ == '__main__':
    import sys
    print(solve(sys.stdin.read().strip())) def solve(string):
    n, d, *xy = map(int, string.split())
    return str(sum([1 if x**2 + y**2 <= d**2 else 0 for x, y in zip(*[iter(xy)] * 2)])) solve n, d, *xy = map(int, string.split()) n map(int, string.split()) map int string.split() string.split string split d *xy xy 1 if x**2 + y**2 <= d**2 else 0 for x, y in zip(*[iter(xy)] * 2) for x, y in zip(*[iter(xy)] * 2) x y zip(*[iter(xy)] * 2) zip *[iter(xy)] * 2 [iter(xy)] * 2 [iter(xy)] iter(xy) iter xy 2 for x, y in zip(*[iter(xy)] * 2) 1 if x**2 + y**2 <= d**2 else 0 x**2 + y**2 <= d**2 x**2 + y**2 x**2 x 2 y**2 y 2 d**2 d 2 1 0 return str(sum([1 if x**2 + y**2 <= d**2 else 0 for x, y in zip(*[iter(xy)] * 2)])) str(sum([1 if x**2 + y**2 <= d**2 else 0 for x, y in zip(*[iter(xy)] * 2)])) str sum([1 if x**2 + y**2 <= d**2 else 0 for x, y in zip(*[iter(xy)] * 2)]) sum [1 if x**2 + y**2 <= d**2 else 0 for x, y in zip(*[iter(xy)] * 2)] string string if __name__ == '__main__':
    import sys
    print(solve(sys.stdin.read().strip())) __name__ == '__main__' __name__ '__main__' import sys sys print(solve(sys.stdin.read().strip())) print solve(sys.stdin.read().strip()) solve sys.stdin.read().strip() sys.stdin.read().strip sys.stdin.read() sys.stdin.read sys.stdin sys stdin read strip def solve(string):
    n, d, *xy = map(int, string.split())
    return str(sum([1 if x**2 + y**2 <= d**2 else 0 for x, y in zip(*[iter(xy)] * 2)])) def solve(string):
    n, d, *xy = map(int, string.split())
    return str(sum([1 if x**2 + y**2 <= d**2 else 0 for x, y in zip(*[iter(xy)] * 2)])) solve
def solve(string):
    n, d, *xy = map(int, string.split())
    return str(sum([1 if x**2 + y**2 <= d**2 else 0 for x, y in zip(*[iter(xy)] * 2)]))


if __name__ == '__main__':
    import sys
    print(solve(sys.stdin.read().strip()))
