import java.util.Scanner;

class Main{
  public static void main(String[] args){
  	Scanner scanner = new Scanner(System.in);
    int count=0;
	int num1= scanner.nextInt();
    int num2= scanner.nextInt();
    
    int[][] a = new int[num1][2];
    for(int i=0;i<num1;i++) for(int k=0;k<2;k++) a[i][k] = scanner.nextInt();
    
    scanner.close();
    
    for(int i=0;i<num1;i++) if(Math.sqrt( Math.pow(a[i][0],2) + Math.pow(a[i][1],2) ) <= num2) count++;
    System.out.println(count);
  }
} import java.util.Scanner; Scanner java.util class Main{
  public static void main(String[] args){
  	Scanner scanner = new Scanner(System.in);
    int count=0;
	int num1= scanner.nextInt();
    int num2= scanner.nextInt();
    
    int[][] a = new int[num1][2];
    for(int i=0;i<num1;i++) for(int k=0;k<2;k++) a[i][k] = scanner.nextInt();
    
    scanner.close();
    
    for(int i=0;i<num1;i++) if(Math.sqrt( Math.pow(a[i][0],2) + Math.pow(a[i][1],2) ) <= num2) count++;
    System.out.println(count);
  }
} Main public static void main(String[] args){
  	Scanner scanner = new Scanner(System.in);
    int count=0;
	int num1= scanner.nextInt();
    int num2= scanner.nextInt();
    
    int[][] a = new int[num1][2];
    for(int i=0;i<num1;i++) for(int k=0;k<2;k++) a[i][k] = scanner.nextInt();
    
    scanner.close();
    
    for(int i=0;i<num1;i++) if(Math.sqrt( Math.pow(a[i][0],2) + Math.pow(a[i][1],2) ) <= num2) count++;
    System.out.println(count);
  } main {
  	Scanner scanner = new Scanner(System.in);
    int count=0;
	int num1= scanner.nextInt();
    int num2= scanner.nextInt();
    
    int[][] a = new int[num1][2];
    for(int i=0;i<num1;i++) for(int k=0;k<2;k++) a[i][k] = scanner.nextInt();
    
    scanner.close();
    
    for(int i=0;i<num1;i++) if(Math.sqrt( Math.pow(a[i][0],2) + Math.pow(a[i][1],2) ) <= num2) count++;
    System.out.println(count);
  } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int count=0; count 0 int num1= scanner.nextInt(); num1 scanner.nextInt() scanner.nextInt scanner int num2= scanner.nextInt(); num2 scanner.nextInt() scanner.nextInt scanner int[][] a = new int[num1][2]; a new int[num1][2] num1 2 for(int i=0;i<num1;i++) for(int k=0;k<2;k++) a[i][k] = scanner.nextInt(); int i=0; int i=0; i 0 i<num1 i num1 i++ i++ i for(int k=0;k<2;k++) a[i][k] = scanner.nextInt(); for(int k=0;k<2;k++) a[i][k] = scanner.nextInt(); int k=0; int k=0; k 0 k<2 k 2 k++ k++ k a[i][k] = scanner.nextInt(); a[i][k] = scanner.nextInt() a[i][k] a[i] a i k scanner.nextInt() scanner.nextInt scanner scanner.close() scanner.close scanner for(int i=0;i<num1;i++) if(Math.sqrt( Math.pow(a[i][0],2) + Math.pow(a[i][1],2) ) <= num2) count++; int i=0; int i=0; i 0 i<num1 i num1 i++ i++ i if(Math.sqrt( Math.pow(a[i][0],2) + Math.pow(a[i][1],2) ) <= num2) count++; if(Math.sqrt( Math.pow(a[i][0],2) + Math.pow(a[i][1],2) ) <= num2) count++; Math.sqrt( Math.pow(a[i][0],2) + Math.pow(a[i][1],2) ) <= num2 Math.sqrt( Math.pow(a[i][0],2) + Math.pow(a[i][1],2) ) Math.sqrt Math Math.pow(a[i][0],2) + Math.pow(a[i][1],2) Math.pow(a[i][0],2) Math.pow Math a[i][0] a[i] a i 0 2 Math.pow(a[i][1],2) Math.pow Math a[i][1] a[i] a i 1 2 num2 count++ count System.out.println(count) System.out.println System.out System System.out count String[] args args
import java.util.Scanner;

class Main{
  public static void main(String[] args){
  	Scanner scanner = new Scanner(System.in);
    int count=0;
	int num1= scanner.nextInt();
    int num2= scanner.nextInt();
    
    int[][] a = new int[num1][2];
    for(int i=0;i<num1;i++) for(int k=0;k<2;k++) a[i][k] = scanner.nextInt();
    
    scanner.close();
    
    for(int i=0;i<num1;i++) if(Math.sqrt( Math.pow(a[i][0],2) + Math.pow(a[i][1],2) ) <= num2) count++;
    System.out.println(count);
  }
}