#!/usr/bin/env python3
#xy = [map(int, input().split()) for _ in range(5)]
#x, y = zip(*xy)

def main():
    nd = list(map(int, input().split()))
    ans = 0
    for i in range(nd[0]):
        xy = list(map(int, input().split()))
        if xy[0] * xy[0] + xy[1] * xy[1] <= nd[1] * nd[1]:
            ans += 1
    print(ans)


if __name__ == '__main__':
    main() def main():
    nd = list(map(int, input().split()))
    ans = 0
    for i in range(nd[0]):
        xy = list(map(int, input().split()))
        if xy[0] * xy[0] + xy[1] * xy[1] <= nd[1] * nd[1]:
            ans += 1
    print(ans) main nd = list(map(int, input().split())) nd list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split ans = 0 ans 0 for i in range(nd[0]):
        xy = list(map(int, input().split()))
        if xy[0] * xy[0] + xy[1] * xy[1] <= nd[1] * nd[1]:
            ans += 1
     i range(nd[0]) range nd[0] nd 0 xy = list(map(int, input().split())) xy list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split if xy[0] * xy[0] + xy[1] * xy[1] <= nd[1] * nd[1]:
            ans += 1
     xy[0] * xy[0] + xy[1] * xy[1] <= nd[1] * nd[1] xy[0] * xy[0] + xy[1] * xy[1] xy[0] * xy[0] xy[0] xy 0 xy[0] xy 0 xy[1] * xy[1] xy[1] xy 1 xy[1] xy 1 nd[1] * nd[1] nd[1] nd 1 nd[1] nd 1 ans += 1 ans 1 print(ans) print ans if __name__ == '__main__':
    main() __name__ == '__main__' __name__ '__main__' main() main def main():
    nd = list(map(int, input().split()))
    ans = 0
    for i in range(nd[0]):
        xy = list(map(int, input().split()))
        if xy[0] * xy[0] + xy[1] * xy[1] <= nd[1] * nd[1]:
            ans += 1
    print(ans) def main():
    nd = list(map(int, input().split()))
    ans = 0
    for i in range(nd[0]):
        xy = list(map(int, input().split()))
        if xy[0] * xy[0] + xy[1] * xy[1] <= nd[1] * nd[1]:
            ans += 1
    print(ans) main
#!/usr/bin/env python3
#xy = [map(int, input().split()) for _ in range(5)]
#x, y = zip(*xy)

def main():
    nd = list(map(int, input().split()))
    ans = 0
    for i in range(nd[0]):
        xy = list(map(int, input().split()))
        if xy[0] * xy[0] + xy[1] * xy[1] <= nd[1] * nd[1]:
            ans += 1
    print(ans)


if __name__ == '__main__':
    main()
