def resolve():
    N, D = map(int, input().split())
    P = [list(map(int, input().split())) for x in range(N)]

    cnt = 0
    for p in P:
        d = (p[0] ** 2 + p[1] ** 2) ** 0.5
        if d <= D:
            cnt += 1

    print(cnt)
resolve() def resolve():
    N, D = map(int, input().split())
    P = [list(map(int, input().split())) for x in range(N)]

    cnt = 0
    for p in P:
        d = (p[0] ** 2 + p[1] ** 2) ** 0.5
        if d <= D:
            cnt += 1

    print(cnt) resolve 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 x in range(N) for x in range(N) x range(N) range N for x in range(N) list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split P = [list(map(int, input().split())) for x in range(N)] P [list(map(int, input().split())) for x in range(N)] cnt = 0 cnt 0 for p in P:
        d = (p[0] ** 2 + p[1] ** 2) ** 0.5
        if d <= D:
            cnt += 1

     p P d = (p[0] ** 2 + p[1] ** 2) ** 0.5 d (p[0] ** 2 + p[1] ** 2) ** 0.5 p[0] ** 2 + p[1] ** 2 p[0] ** 2 p[0] p 0 2 p[1] ** 2 p[1] p 1 2 0.5 if d <= D:
            cnt += 1

     d <= D d D cnt += 1 cnt 1 print(cnt) print cnt resolve() resolve def resolve():
    N, D = map(int, input().split())
    P = [list(map(int, input().split())) for x in range(N)]

    cnt = 0
    for p in P:
        d = (p[0] ** 2 + p[1] ** 2) ** 0.5
        if d <= D:
            cnt += 1

    print(cnt) def resolve():
    N, D = map(int, input().split())
    P = [list(map(int, input().split())) for x in range(N)]

    cnt = 0
    for p in P:
        d = (p[0] ** 2 + p[1] ** 2) ** 0.5
        if d <= D:
            cnt += 1

    print(cnt) resolve
def resolve():
    N, D = map(int, input().split())
    P = [list(map(int, input().split())) for x in range(N)]

    cnt = 0
    for p in P:
        d = (p[0] ** 2 + p[1] ** 2) ** 0.5
        if d <= D:
            cnt += 1

    print(cnt)
resolve()