import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
	    Scanner sc = new Scanner(System.in);
	    int n = sc.nextInt();
	    int d = sc.nextInt();
	    long x, y;
	    int c = 0;
	    for (int i=0; i < n ; i++) {
            sc.nextLine();
            x = sc.nextInt();
            y = sc.nextInt();
            double dxy = Math.sqrt((x*x) + (y*y));
            if (dxy <= d) {
            	c++;
            }
        }
	    System.out.println(c);
	}
} 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();
	    int d = sc.nextInt();
	    long x, y;
	    int c = 0;
	    for (int i=0; i < n ; i++) {
            sc.nextLine();
            x = sc.nextInt();
            y = sc.nextInt();
            double dxy = Math.sqrt((x*x) + (y*y));
            if (dxy <= d) {
            	c++;
            }
        }
	    System.out.println(c);
	}
} Main public static void main(String[] args) {
	    Scanner sc = new Scanner(System.in);
	    int n = sc.nextInt();
	    int d = sc.nextInt();
	    long x, y;
	    int c = 0;
	    for (int i=0; i < n ; i++) {
            sc.nextLine();
            x = sc.nextInt();
            y = sc.nextInt();
            double dxy = Math.sqrt((x*x) + (y*y));
            if (dxy <= d) {
            	c++;
            }
        }
	    System.out.println(c);
	} main {
	    Scanner sc = new Scanner(System.in);
	    int n = sc.nextInt();
	    int d = sc.nextInt();
	    long x, y;
	    int c = 0;
	    for (int i=0; i < n ; i++) {
            sc.nextLine();
            x = sc.nextInt();
            y = sc.nextInt();
            double dxy = Math.sqrt((x*x) + (y*y));
            if (dxy <= d) {
            	c++;
            }
        }
	    System.out.println(c);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int d = sc.nextInt(); d sc.nextInt() sc.nextInt sc long x x y; y int c = 0; c 0 for (int i=0; i < n ; i++) {
            sc.nextLine();
            x = sc.nextInt();
            y = sc.nextInt();
            double dxy = Math.sqrt((x*x) + (y*y));
            if (dxy <= d) {
            	c++;
            }
        } int i=0; int i=0; i 0 i < n i n i++ i++ i {
            sc.nextLine();
            x = sc.nextInt();
            y = sc.nextInt();
            double dxy = Math.sqrt((x*x) + (y*y));
            if (dxy <= d) {
            	c++;
            }
        } {
            sc.nextLine();
            x = sc.nextInt();
            y = sc.nextInt();
            double dxy = Math.sqrt((x*x) + (y*y));
            if (dxy <= d) {
            	c++;
            }
        } sc.nextLine() sc.nextLine sc x = sc.nextInt() x sc.nextInt() sc.nextInt sc y = sc.nextInt() y sc.nextInt() sc.nextInt sc double dxy = Math.sqrt((x*x) + (y*y)); dxy Math.sqrt((x*x) + (y*y)) Math.sqrt Math (x*x) + (y*y) (x*x) x x (y*y) y y if (dxy <= d) {
            	c++;
            } dxy <= d dxy d {
            	c++;
            } c++ c System.out.println(c) System.out.println System.out System System.out c String[] args args public class Main {
	public static void main(String[] args) {
	    Scanner sc = new Scanner(System.in);
	    int n = sc.nextInt();
	    int d = sc.nextInt();
	    long x, y;
	    int c = 0;
	    for (int i=0; i < n ; i++) {
            sc.nextLine();
            x = sc.nextInt();
            y = sc.nextInt();
            double dxy = Math.sqrt((x*x) + (y*y));
            if (dxy <= d) {
            	c++;
            }
        }
	    System.out.println(c);
	}
} public class Main {
	public static void main(String[] args) {
	    Scanner sc = new Scanner(System.in);
	    int n = sc.nextInt();
	    int d = sc.nextInt();
	    long x, y;
	    int c = 0;
	    for (int i=0; i < n ; i++) {
            sc.nextLine();
            x = sc.nextInt();
            y = sc.nextInt();
            double dxy = Math.sqrt((x*x) + (y*y));
            if (dxy <= d) {
            	c++;
            }
        }
	    System.out.println(c);
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
	    Scanner sc = new Scanner(System.in);
	    int n = sc.nextInt();
	    int d = sc.nextInt();
	    long x, y;
	    int c = 0;
	    for (int i=0; i < n ; i++) {
            sc.nextLine();
            x = sc.nextInt();
            y = sc.nextInt();
            double dxy = Math.sqrt((x*x) + (y*y));
            if (dxy <= d) {
            	c++;
            }
        }
	    System.out.println(c);
	}
}