import java.util.Scanner;

public class Main{
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int num = sc.nextInt();
        int dis = sc.nextInt();

        int count = 0;
        Long x, y;

        for(int i = 0; i < num; i++){
            x = sc.nextLong(); y = sc.nextLong();
            if( Math.sqrt(x*x+y*y) <= dis ){
                count++;
            }
        }

        System.out.println(count);
        sc.close();
    }
} import java.util.Scanner; Scanner java.util public class Main{
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int num = sc.nextInt();
        int dis = sc.nextInt();

        int count = 0;
        Long x, y;

        for(int i = 0; i < num; i++){
            x = sc.nextLong(); y = sc.nextLong();
            if( Math.sqrt(x*x+y*y) <= dis ){
                count++;
            }
        }

        System.out.println(count);
        sc.close();
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int num = sc.nextInt();
        int dis = sc.nextInt();

        int count = 0;
        Long x, y;

        for(int i = 0; i < num; i++){
            x = sc.nextLong(); y = sc.nextLong();
            if( Math.sqrt(x*x+y*y) <= dis ){
                count++;
            }
        }

        System.out.println(count);
        sc.close();
    } main {
        Scanner sc = new Scanner(System.in);
        int num = sc.nextInt();
        int dis = sc.nextInt();

        int count = 0;
        Long x, y;

        for(int i = 0; i < num; i++){
            x = sc.nextLong(); y = sc.nextLong();
            if( Math.sqrt(x*x+y*y) <= dis ){
                count++;
            }
        }

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

        int count = 0;
        Long x, y;

        for(int i = 0; i < num; i++){
            x = sc.nextLong(); y = sc.nextLong();
            if( Math.sqrt(x*x+y*y) <= dis ){
                count++;
            }
        }

        System.out.println(count);
        sc.close();
    }
} public class Main{
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int num = sc.nextInt();
        int dis = sc.nextInt();

        int count = 0;
        Long x, y;

        for(int i = 0; i < num; i++){
            x = sc.nextLong(); y = sc.nextLong();
            if( Math.sqrt(x*x+y*y) <= dis ){
                count++;
            }
        }

        System.out.println(count);
        sc.close();
    }
} Main
import java.util.Scanner;

public class Main{
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int num = sc.nextInt();
        int dis = sc.nextInt();

        int count = 0;
        Long x, y;

        for(int i = 0; i < num; i++){
            x = sc.nextLong(); y = sc.nextLong();
            if( Math.sqrt(x*x+y*y) <= dis ){
                count++;
            }
        }

        System.out.println(count);
        sc.close();
    }
}