import java.util.Scanner;

public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        Double D = sc.nextDouble();
        Double[][] X = new Double[N][2];

        for(int i=0; i<N*2; i++){
            if(i%2 == 0){
                X[i/2][0] = sc.nextDouble();
            }else{
                X[i/2][1] = sc.nextDouble();
            }
        }
        sc.close();
        int ans = 0;
        for(int i=0; i<N; i++){
            if(Math.sqrt(X[i][0]*X[i][0]+(X[i][1]*X[i][1])) <= D){
                ans ++;
            }
        }
        System.out.println(ans);
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        Double D = sc.nextDouble();
        Double[][] X = new Double[N][2];

        for(int i=0; i<N*2; i++){
            if(i%2 == 0){
                X[i/2][0] = sc.nextDouble();
            }else{
                X[i/2][1] = sc.nextDouble();
            }
        }
        sc.close();
        int ans = 0;
        for(int i=0; i<N; i++){
            if(Math.sqrt(X[i][0]*X[i][0]+(X[i][1]*X[i][1])) <= D){
                ans ++;
            }
        }
        System.out.println(ans);
    }
} Main public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        Double D = sc.nextDouble();
        Double[][] X = new Double[N][2];

        for(int i=0; i<N*2; i++){
            if(i%2 == 0){
                X[i/2][0] = sc.nextDouble();
            }else{
                X[i/2][1] = sc.nextDouble();
            }
        }
        sc.close();
        int ans = 0;
        for(int i=0; i<N; i++){
            if(Math.sqrt(X[i][0]*X[i][0]+(X[i][1]*X[i][1])) <= D){
                ans ++;
            }
        }
        System.out.println(ans);
    } main {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        Double D = sc.nextDouble();
        Double[][] X = new Double[N][2];

        for(int i=0; i<N*2; i++){
            if(i%2 == 0){
                X[i/2][0] = sc.nextDouble();
            }else{
                X[i/2][1] = sc.nextDouble();
            }
        }
        sc.close();
        int ans = 0;
        for(int i=0; i<N; i++){
            if(Math.sqrt(X[i][0]*X[i][0]+(X[i][1]*X[i][1])) <= D){
                ans ++;
            }
        }
        System.out.println(ans);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc Double D = sc.nextDouble(); D sc.nextDouble() sc.nextDouble sc Double[][] X = new Double[N][2]; X new Double[N][2] N 2 for(int i=0; i<N*2; i++){
            if(i%2 == 0){
                X[i/2][0] = sc.nextDouble();
            }else{
                X[i/2][1] = sc.nextDouble();
            }
        } int i=0; int i=0; i 0 i<N*2 i N*2 N 2 i++ i++ i {
            if(i%2 == 0){
                X[i/2][0] = sc.nextDouble();
            }else{
                X[i/2][1] = sc.nextDouble();
            }
        } {
            if(i%2 == 0){
                X[i/2][0] = sc.nextDouble();
            }else{
                X[i/2][1] = sc.nextDouble();
            }
        } if(i%2 == 0){
                X[i/2][0] = sc.nextDouble();
            }else{
                X[i/2][1] = sc.nextDouble();
            } i%2 == 0 i%2 i 2 0 {
                X[i/2][0] = sc.nextDouble();
            } X[i/2][0] = sc.nextDouble() X[i/2][0] X[i/2] X i/2 i 2 0 sc.nextDouble() sc.nextDouble sc {
                X[i/2][1] = sc.nextDouble();
            } X[i/2][1] = sc.nextDouble() X[i/2][1] X[i/2] X i/2 i 2 1 sc.nextDouble() sc.nextDouble sc sc.close() sc.close sc int ans = 0; ans 0 for(int i=0; i<N; i++){
            if(Math.sqrt(X[i][0]*X[i][0]+(X[i][1]*X[i][1])) <= D){
                ans ++;
            }
        } int i=0; int i=0; i 0 i<N i N i++ i++ i {
            if(Math.sqrt(X[i][0]*X[i][0]+(X[i][1]*X[i][1])) <= D){
                ans ++;
            }
        } {
            if(Math.sqrt(X[i][0]*X[i][0]+(X[i][1]*X[i][1])) <= D){
                ans ++;
            }
        } if(Math.sqrt(X[i][0]*X[i][0]+(X[i][1]*X[i][1])) <= D){
                ans ++;
            } Math.sqrt(X[i][0]*X[i][0]+(X[i][1]*X[i][1])) <= D Math.sqrt(X[i][0]*X[i][0]+(X[i][1]*X[i][1])) Math.sqrt Math X[i][0]*X[i][0]+(X[i][1]*X[i][1]) X[i][0]*X[i][0] X[i][0] X[i] X i 0 X[i][0] X[i] X i 0 (X[i][1]*X[i][1]) X[i][1] X[i] X i 1 X[i][1] X[i] X i 1 D {
                ans ++;
            } ans ++ ans System.out.println(ans) System.out.println System.out System System.out ans String[] args args public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        Double D = sc.nextDouble();
        Double[][] X = new Double[N][2];

        for(int i=0; i<N*2; i++){
            if(i%2 == 0){
                X[i/2][0] = sc.nextDouble();
            }else{
                X[i/2][1] = sc.nextDouble();
            }
        }
        sc.close();
        int ans = 0;
        for(int i=0; i<N; i++){
            if(Math.sqrt(X[i][0]*X[i][0]+(X[i][1]*X[i][1])) <= D){
                ans ++;
            }
        }
        System.out.println(ans);
    }
} public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        Double D = sc.nextDouble();
        Double[][] X = new Double[N][2];

        for(int i=0; i<N*2; i++){
            if(i%2 == 0){
                X[i/2][0] = sc.nextDouble();
            }else{
                X[i/2][1] = sc.nextDouble();
            }
        }
        sc.close();
        int ans = 0;
        for(int i=0; i<N; i++){
            if(Math.sqrt(X[i][0]*X[i][0]+(X[i][1]*X[i][1])) <= D){
                ans ++;
            }
        }
        System.out.println(ans);
    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        Double D = sc.nextDouble();
        Double[][] X = new Double[N][2];

        for(int i=0; i<N*2; i++){
            if(i%2 == 0){
                X[i/2][0] = sc.nextDouble();
            }else{
                X[i/2][1] = sc.nextDouble();
            }
        }
        sc.close();
        int ans = 0;
        for(int i=0; i<N; i++){
            if(Math.sqrt(X[i][0]*X[i][0]+(X[i][1]*X[i][1])) <= D){
                ans ++;
            }
        }
        System.out.println(ans);
    }
}