import java.util.Scanner;

public class Main {
    public static void main(String args[]) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        double pardonDist = sc.nextDouble();
        int[][] coordinate = new int[n][2];
        for(int i=0; i<n; i++) for(int j=0; j<2; j++) coordinate[i][j] = sc.nextInt();
        int count = 0;
        double dist = 0;
        for(int i=0; i<n; i++) {
            dist = Math.sqrt(Math.pow(coordinate[i][0], 2) + Math.pow(coordinate[i][1], 2));
            if(dist <= pardonDist) count++;
        }

        System.out.println(count);
    }
}

 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 pardonDist = sc.nextDouble();
        int[][] coordinate = new int[n][2];
        for(int i=0; i<n; i++) for(int j=0; j<2; j++) coordinate[i][j] = sc.nextInt();
        int count = 0;
        double dist = 0;
        for(int i=0; i<n; i++) {
            dist = Math.sqrt(Math.pow(coordinate[i][0], 2) + Math.pow(coordinate[i][1], 2));
            if(dist <= pardonDist) count++;
        }

        System.out.println(count);
    }
} Main public static void main(String args[]) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        double pardonDist = sc.nextDouble();
        int[][] coordinate = new int[n][2];
        for(int i=0; i<n; i++) for(int j=0; j<2; j++) coordinate[i][j] = sc.nextInt();
        int count = 0;
        double dist = 0;
        for(int i=0; i<n; i++) {
            dist = Math.sqrt(Math.pow(coordinate[i][0], 2) + Math.pow(coordinate[i][1], 2));
            if(dist <= pardonDist) count++;
        }

        System.out.println(count);
    } main {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        double pardonDist = sc.nextDouble();
        int[][] coordinate = new int[n][2];
        for(int i=0; i<n; i++) for(int j=0; j<2; j++) coordinate[i][j] = sc.nextInt();
        int count = 0;
        double dist = 0;
        for(int i=0; i<n; i++) {
            dist = Math.sqrt(Math.pow(coordinate[i][0], 2) + Math.pow(coordinate[i][1], 2));
            if(dist <= pardonDist) count++;
        }

        System.out.println(count);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc double pardonDist = sc.nextDouble(); pardonDist sc.nextDouble() sc.nextDouble sc int[][] coordinate = new int[n][2]; coordinate new int[n][2] n 2 for(int i=0; i<n; i++) for(int j=0; j<2; j++) coordinate[i][j] = sc.nextInt(); int i=0; int i=0; i 0 i<n i n i++ i++ i for(int j=0; j<2; j++) coordinate[i][j] = sc.nextInt(); for(int j=0; j<2; j++) coordinate[i][j] = sc.nextInt(); int j=0; int j=0; j 0 j<2 j 2 j++ j++ j coordinate[i][j] = sc.nextInt(); coordinate[i][j] = sc.nextInt() coordinate[i][j] coordinate[i] coordinate i j sc.nextInt() sc.nextInt sc int count = 0; count 0 double dist = 0; dist 0 for(int i=0; i<n; i++) {
            dist = Math.sqrt(Math.pow(coordinate[i][0], 2) + Math.pow(coordinate[i][1], 2));
            if(dist <= pardonDist) count++;
        } int i=0; int i=0; i 0 i<n i n i++ i++ i {
            dist = Math.sqrt(Math.pow(coordinate[i][0], 2) + Math.pow(coordinate[i][1], 2));
            if(dist <= pardonDist) count++;
        } {
            dist = Math.sqrt(Math.pow(coordinate[i][0], 2) + Math.pow(coordinate[i][1], 2));
            if(dist <= pardonDist) count++;
        } dist = Math.sqrt(Math.pow(coordinate[i][0], 2) + Math.pow(coordinate[i][1], 2)) dist Math.sqrt(Math.pow(coordinate[i][0], 2) + Math.pow(coordinate[i][1], 2)) Math.sqrt Math Math.pow(coordinate[i][0], 2) + Math.pow(coordinate[i][1], 2) Math.pow(coordinate[i][0], 2) Math.pow Math coordinate[i][0] coordinate[i] coordinate i 0 2 Math.pow(coordinate[i][1], 2) Math.pow Math coordinate[i][1] coordinate[i] coordinate i 1 2 if(dist <= pardonDist) count++; dist <= pardonDist dist pardonDist count++ count System.out.println(count) System.out.println System.out System System.out count String args[] args public class Main {
    public static void main(String args[]) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        double pardonDist = sc.nextDouble();
        int[][] coordinate = new int[n][2];
        for(int i=0; i<n; i++) for(int j=0; j<2; j++) coordinate[i][j] = sc.nextInt();
        int count = 0;
        double dist = 0;
        for(int i=0; i<n; i++) {
            dist = Math.sqrt(Math.pow(coordinate[i][0], 2) + Math.pow(coordinate[i][1], 2));
            if(dist <= pardonDist) count++;
        }

        System.out.println(count);
    }
} public class Main {
    public static void main(String args[]) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        double pardonDist = sc.nextDouble();
        int[][] coordinate = new int[n][2];
        for(int i=0; i<n; i++) for(int j=0; j<2; j++) coordinate[i][j] = sc.nextInt();
        int count = 0;
        double dist = 0;
        for(int i=0; i<n; i++) {
            dist = Math.sqrt(Math.pow(coordinate[i][0], 2) + Math.pow(coordinate[i][1], 2));
            if(dist <= pardonDist) count++;
        }

        System.out.println(count);
    }
} 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 pardonDist = sc.nextDouble();
        int[][] coordinate = new int[n][2];
        for(int i=0; i<n; i++) for(int j=0; j<2; j++) coordinate[i][j] = sc.nextInt();
        int count = 0;
        double dist = 0;
        for(int i=0; i<n; i++) {
            dist = Math.sqrt(Math.pow(coordinate[i][0], 2) + Math.pow(coordinate[i][1], 2));
            if(dist <= pardonDist) count++;
        }

        System.out.println(count);
    }
}


