def main():
    N, D = map(int, input().split())
    A = [list(map(int, input().split())) for _ in range(N)]
    cnt = 0
    for a in A:
        if (a[0]**2 + a[1]**2)**0.5 <= D:
            cnt += 1
    print(cnt)


if __name__ == '__main__':
    main() def main():
    N, D = map(int, input().split())
    A = [list(map(int, input().split())) for _ in range(N)]
    cnt = 0
    for a in A:
        if (a[0]**2 + a[1]**2)**0.5 <= D:
            cnt += 1
    print(cnt) main N, D = map(int, input().split()) N map(int, input().split()) map int input().split() ().split () input split D list(map(int, input().split())) for _ in range(N) for _ in range(N) _ range(N) range N for _ in range(N) list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split A = [list(map(int, input().split())) for _ in range(N)] A [list(map(int, input().split())) for _ in range(N)] cnt = 0 cnt 0 for a in A:
        if (a[0]**2 + a[1]**2)**0.5 <= D:
            cnt += 1
     a A if (a[0]**2 + a[1]**2)**0.5 <= D:
            cnt += 1
     (a[0]**2 + a[1]**2)**0.5 <= D (a[0]**2 + a[1]**2)**0.5 a[0]**2 + a[1]**2 a[0]**2 a[0] a 0 2 a[1]**2 a[1] a 1 2 0.5 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, input().split())
    A = [list(map(int, input().split())) for _ in range(N)]
    cnt = 0
    for a in A:
        if (a[0]**2 + a[1]**2)**0.5 <= D:
            cnt += 1
    print(cnt) def main():
    N, D = map(int, input().split())
    A = [list(map(int, input().split())) for _ in range(N)]
    cnt = 0
    for a in A:
        if (a[0]**2 + a[1]**2)**0.5 <= D:
            cnt += 1
    print(cnt) main
def main():
    N, D = map(int, input().split())
    A = [list(map(int, input().split())) for _ in range(N)]
    cnt = 0
    for a in A:
        if (a[0]**2 + a[1]**2)**0.5 <= D:
            cnt += 1
    print(cnt)


if __name__ == '__main__':
    main()