import java.util.Scanner;
import java.lang.Math;

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

        int dotNum = sc.nextInt();
        int distance = sc.nextInt();
        int[][] point = new int[dotNum][2]; 
        for(int i = 0; i < dotNum; i++){
            point[i][0] = sc.nextInt();
            point[i][1] = sc.nextInt();
        }

        int count = 0;
        for(int i = 0; i < dotNum; i++){
            if(isLessThanDistance(point[i][0], point[i][1],distance)){
                count++;
            }
        }
        System.out.println(count);
    }

    public static boolean isLessThanDistance(int x, int y,int distance){
        return distance >= Math.sqrt((double)x*x + (double)y*y) ? true : false;
    }
} import java.util.Scanner; Scanner java.util import java.lang.Math; Math java.lang public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);

        int dotNum = sc.nextInt();
        int distance = sc.nextInt();
        int[][] point = new int[dotNum][2]; 
        for(int i = 0; i < dotNum; i++){
            point[i][0] = sc.nextInt();
            point[i][1] = sc.nextInt();
        }

        int count = 0;
        for(int i = 0; i < dotNum; i++){
            if(isLessThanDistance(point[i][0], point[i][1],distance)){
                count++;
            }
        }
        System.out.println(count);
    }

    public static boolean isLessThanDistance(int x, int y,int distance){
        return distance >= Math.sqrt((double)x*x + (double)y*y) ? true : false;
    }
} Main public static void main(String[] args){
        Scanner sc = new Scanner(System.in);

        int dotNum = sc.nextInt();
        int distance = sc.nextInt();
        int[][] point = new int[dotNum][2]; 
        for(int i = 0; i < dotNum; i++){
            point[i][0] = sc.nextInt();
            point[i][1] = sc.nextInt();
        }

        int count = 0;
        for(int i = 0; i < dotNum; i++){
            if(isLessThanDistance(point[i][0], point[i][1],distance)){
                count++;
            }
        }
        System.out.println(count);
    } main {
        Scanner sc = new Scanner(System.in);

        int dotNum = sc.nextInt();
        int distance = sc.nextInt();
        int[][] point = new int[dotNum][2]; 
        for(int i = 0; i < dotNum; i++){
            point[i][0] = sc.nextInt();
            point[i][1] = sc.nextInt();
        }

        int count = 0;
        for(int i = 0; i < dotNum; i++){
            if(isLessThanDistance(point[i][0], point[i][1],distance)){
                count++;
            }
        }
        System.out.println(count);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int dotNum = sc.nextInt(); dotNum sc.nextInt() sc.nextInt sc int distance = sc.nextInt(); distance sc.nextInt() sc.nextInt sc int[][] point = new int[dotNum][2]; point new int[dotNum][2] dotNum 2 for(int i = 0; i < dotNum; i++){
            point[i][0] = sc.nextInt();
            point[i][1] = sc.nextInt();
        } int i = 0; int i = 0; i 0 i < dotNum i dotNum i++ i++ i {
            point[i][0] = sc.nextInt();
            point[i][1] = sc.nextInt();
        } {
            point[i][0] = sc.nextInt();
            point[i][1] = sc.nextInt();
        } point[i][0] = sc.nextInt() point[i][0] point[i] point i 0 sc.nextInt() sc.nextInt sc point[i][1] = sc.nextInt() point[i][1] point[i] point i 1 sc.nextInt() sc.nextInt sc int count = 0; count 0 for(int i = 0; i < dotNum; i++){
            if(isLessThanDistance(point[i][0], point[i][1],distance)){
                count++;
            }
        } int i = 0; int i = 0; i 0 i < dotNum i dotNum i++ i++ i {
            if(isLessThanDistance(point[i][0], point[i][1],distance)){
                count++;
            }
        } {
            if(isLessThanDistance(point[i][0], point[i][1],distance)){
                count++;
            }
        } if(isLessThanDistance(point[i][0], point[i][1],distance)){
                count++;
            } isLessThanDistance(point[i][0], point[i][1],distance) isLessThanDistance point[i][0] point[i] point i 0 point[i][1] point[i] point i 1 distance {
                count++;
            } count++ count System.out.println(count) System.out.println System.out System System.out count String[] args args public static boolean isLessThanDistance(int x, int y,int distance){
        return distance >= Math.sqrt((double)x*x + (double)y*y) ? true : false;
    } isLessThanDistance {
        return distance >= Math.sqrt((double)x*x + (double)y*y) ? true : false;
    } return distance >= Math.sqrt((double)x*x + (double)y*y) ? true : false; distance >= Math.sqrt((double)x*x + (double)y*y) ? true : false distance >= Math.sqrt((double)x*x + (double)y*y) distance Math.sqrt((double)x*x + (double)y*y) Math.sqrt Math (double)x*x + (double)y*y (double)x*x (double)x x (double)y*y (double)y y true false int x x int y y int distance distance public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);

        int dotNum = sc.nextInt();
        int distance = sc.nextInt();
        int[][] point = new int[dotNum][2]; 
        for(int i = 0; i < dotNum; i++){
            point[i][0] = sc.nextInt();
            point[i][1] = sc.nextInt();
        }

        int count = 0;
        for(int i = 0; i < dotNum; i++){
            if(isLessThanDistance(point[i][0], point[i][1],distance)){
                count++;
            }
        }
        System.out.println(count);
    }

    public static boolean isLessThanDistance(int x, int y,int distance){
        return distance >= Math.sqrt((double)x*x + (double)y*y) ? true : false;
    }
} public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);

        int dotNum = sc.nextInt();
        int distance = sc.nextInt();
        int[][] point = new int[dotNum][2]; 
        for(int i = 0; i < dotNum; i++){
            point[i][0] = sc.nextInt();
            point[i][1] = sc.nextInt();
        }

        int count = 0;
        for(int i = 0; i < dotNum; i++){
            if(isLessThanDistance(point[i][0], point[i][1],distance)){
                count++;
            }
        }
        System.out.println(count);
    }

    public static boolean isLessThanDistance(int x, int y,int distance){
        return distance >= Math.sqrt((double)x*x + (double)y*y) ? true : false;
    }
} Main
import java.util.Scanner;
import java.lang.Math;

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

        int dotNum = sc.nextInt();
        int distance = sc.nextInt();
        int[][] point = new int[dotNum][2]; 
        for(int i = 0; i < dotNum; i++){
            point[i][0] = sc.nextInt();
            point[i][1] = sc.nextInt();
        }

        int count = 0;
        for(int i = 0; i < dotNum; i++){
            if(isLessThanDistance(point[i][0], point[i][1],distance)){
                count++;
            }
        }
        System.out.println(count);
    }

    public static boolean isLessThanDistance(int x, int y,int distance){
        return distance >= Math.sqrt((double)x*x + (double)y*y) ? true : false;
    }
}