def main():
    from sys import stdin
    from math import sqrt

    readline = stdin.readline

    N,D = list(map(int,readline().rstrip().split()))
    count = 0

    for X in range(N):
        X1,X2 = list(map(int,readline().rstrip().split()))
        
        if sqrt(X1**2 + X2**2) <= D :
            count += 1

    print(count)

main() def main():
    from sys import stdin
    from math import sqrt

    readline = stdin.readline

    N,D = list(map(int,readline().rstrip().split()))
    count = 0

    for X in range(N):
        X1,X2 = list(map(int,readline().rstrip().split()))
        
        if sqrt(X1**2 + X2**2) <= D :
            count += 1

    print(count) main from sys import stdin from math import sqrt readline = stdin.readline readline stdin.readline stdin readline N,D = list(map(int,readline().rstrip().split())) N list(map(int,readline().rstrip().split())) list map(int,readline().rstrip().split()) map int readline().rstrip().split() ().rstrip().split ().rstrip() ().rstrip () readline rstrip split D count = 0 count 0 for X in range(N):
        X1,X2 = list(map(int,readline().rstrip().split()))
        
        if sqrt(X1**2 + X2**2) <= D :
            count += 1

     X range(N) range N X1,X2 = list(map(int,readline().rstrip().split())) X1 list(map(int,readline().rstrip().split())) list map(int,readline().rstrip().split()) map int readline().rstrip().split() ().rstrip().split ().rstrip() ().rstrip () readline rstrip split X2 if sqrt(X1**2 + X2**2) <= D :
            count += 1

     sqrt(X1**2 + X2**2) <= D sqrt(X1**2 + X2**2) sqrt X1**2 + X2**2 X1**2 X1 2 X2**2 X2 2 D count += 1 count 1 print(count) print count main() main def main():
    from sys import stdin
    from math import sqrt

    readline = stdin.readline

    N,D = list(map(int,readline().rstrip().split()))
    count = 0

    for X in range(N):
        X1,X2 = list(map(int,readline().rstrip().split()))
        
        if sqrt(X1**2 + X2**2) <= D :
            count += 1

    print(count) def main():
    from sys import stdin
    from math import sqrt

    readline = stdin.readline

    N,D = list(map(int,readline().rstrip().split()))
    count = 0

    for X in range(N):
        X1,X2 = list(map(int,readline().rstrip().split()))
        
        if sqrt(X1**2 + X2**2) <= D :
            count += 1

    print(count) main
def main():
    from sys import stdin
    from math import sqrt

    readline = stdin.readline

    N,D = list(map(int,readline().rstrip().split()))
    count = 0

    for X in range(N):
        X1,X2 = list(map(int,readline().rstrip().split()))
        
        if sqrt(X1**2 + X2**2) <= D :
            count += 1

    print(count)

main()