import java.util.Scanner;

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int num = sc.nextInt();
        int distance = sc.nextInt();
        long x,y;
        int count = 0;

        for (int i = 0; i < num; i++) {
            x = sc.nextInt();
            y = sc.nextInt();
            if (Math.sqrt(x * x + y * y) <= distance) {
                count++;
            }
        }
        sc.close();
        System.out.println(count);
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int num = sc.nextInt();
        int distance = sc.nextInt();
        long x,y;
        int count = 0;

        for (int i = 0; i < num; i++) {
            x = sc.nextInt();
            y = sc.nextInt();
            if (Math.sqrt(x * x + y * y) <= distance) {
                count++;
            }
        }
        sc.close();
        System.out.println(count);
    }
} Main public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int num = sc.nextInt();
        int distance = sc.nextInt();
        long x,y;
        int count = 0;

        for (int i = 0; i < num; i++) {
            x = sc.nextInt();
            y = sc.nextInt();
            if (Math.sqrt(x * x + y * y) <= distance) {
                count++;
            }
        }
        sc.close();
        System.out.println(count);
    } main {
        Scanner sc = new Scanner(System.in);
        int num = sc.nextInt();
        int distance = sc.nextInt();
        long x,y;
        int count = 0;

        for (int i = 0; i < num; i++) {
            x = sc.nextInt();
            y = sc.nextInt();
            if (Math.sqrt(x * x + y * y) <= distance) {
                count++;
            }
        }
        sc.close();
        System.out.println(count);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int num = sc.nextInt(); num sc.nextInt() sc.nextInt sc int distance = sc.nextInt(); distance sc.nextInt() sc.nextInt sc long x x y; y int count = 0; count 0 for (int i = 0; i < num; i++) {
            x = sc.nextInt();
            y = sc.nextInt();
            if (Math.sqrt(x * x + y * y) <= distance) {
                count++;
            }
        } int i = 0; int i = 0; i 0 i < num i num i++ i++ i {
            x = sc.nextInt();
            y = sc.nextInt();
            if (Math.sqrt(x * x + y * y) <= distance) {
                count++;
            }
        } {
            x = sc.nextInt();
            y = sc.nextInt();
            if (Math.sqrt(x * x + y * y) <= distance) {
                count++;
            }
        } x = sc.nextInt() x sc.nextInt() sc.nextInt sc y = sc.nextInt() y sc.nextInt() sc.nextInt sc if (Math.sqrt(x * x + y * y) <= distance) {
                count++;
            } Math.sqrt(x * x + y * y) <= distance Math.sqrt(x * x + y * y) Math.sqrt Math x * x + y * y x * x x x y * y y y distance {
                count++;
            } count++ count sc.close() sc.close sc 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) throws Exception {
        Scanner sc = new Scanner(System.in);
        int num = sc.nextInt();
        int distance = sc.nextInt();
        long x,y;
        int count = 0;

        for (int i = 0; i < num; i++) {
            x = sc.nextInt();
            y = sc.nextInt();
            if (Math.sqrt(x * x + y * y) <= distance) {
                count++;
            }
        }
        sc.close();
        System.out.println(count);
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int num = sc.nextInt();
        int distance = sc.nextInt();
        long x,y;
        int count = 0;

        for (int i = 0; i < num; i++) {
            x = sc.nextInt();
            y = sc.nextInt();
            if (Math.sqrt(x * x + y * y) <= distance) {
                count++;
            }
        }
        sc.close();
        System.out.println(count);
    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int num = sc.nextInt();
        int distance = sc.nextInt();
        long x,y;
        int count = 0;

        for (int i = 0; i < num; i++) {
            x = sc.nextInt();
            y = sc.nextInt();
            if (Math.sqrt(x * x + y * y) <= distance) {
                count++;
            }
        }
        sc.close();
        System.out.println(count);
    }
}
