import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String line = sc.nextLine();
        String[] lines = line.split(" ", 0);
      
        int num = Integer.parseInt(lines[0]);
        int dis = Integer.parseInt(lines[1]);
      
      int count = 0;
        for (int i = 0; i < num; i++) {
            line = sc.nextLine();
        	String[] lines2 = line.split(" ", 0);
            double pos = Math.sqrt(Long.parseLong(lines2[0]) * Long.parseLong(lines2[0])
              + Long.parseLong(lines2[1]) * Long.parseLong(lines2[1]));
          if (pos <= dis) {
                count++;
            }else{
          }
        }
        
     System.out.println(count);
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String line = sc.nextLine();
        String[] lines = line.split(" ", 0);
      
        int num = Integer.parseInt(lines[0]);
        int dis = Integer.parseInt(lines[1]);
      
      int count = 0;
        for (int i = 0; i < num; i++) {
            line = sc.nextLine();
        	String[] lines2 = line.split(" ", 0);
            double pos = Math.sqrt(Long.parseLong(lines2[0]) * Long.parseLong(lines2[0])
              + Long.parseLong(lines2[1]) * Long.parseLong(lines2[1]));
          if (pos <= dis) {
                count++;
            }else{
          }
        }
        
     System.out.println(count);
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String line = sc.nextLine();
        String[] lines = line.split(" ", 0);
      
        int num = Integer.parseInt(lines[0]);
        int dis = Integer.parseInt(lines[1]);
      
      int count = 0;
        for (int i = 0; i < num; i++) {
            line = sc.nextLine();
        	String[] lines2 = line.split(" ", 0);
            double pos = Math.sqrt(Long.parseLong(lines2[0]) * Long.parseLong(lines2[0])
              + Long.parseLong(lines2[1]) * Long.parseLong(lines2[1]));
          if (pos <= dis) {
                count++;
            }else{
          }
        }
        
     System.out.println(count);
    } main {
        Scanner sc = new Scanner(System.in);
        String line = sc.nextLine();
        String[] lines = line.split(" ", 0);
      
        int num = Integer.parseInt(lines[0]);
        int dis = Integer.parseInt(lines[1]);
      
      int count = 0;
        for (int i = 0; i < num; i++) {
            line = sc.nextLine();
        	String[] lines2 = line.split(" ", 0);
            double pos = Math.sqrt(Long.parseLong(lines2[0]) * Long.parseLong(lines2[0])
              + Long.parseLong(lines2[1]) * Long.parseLong(lines2[1]));
          if (pos <= dis) {
                count++;
            }else{
          }
        }
        
     System.out.println(count);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String line = sc.nextLine(); line sc.nextLine() sc.nextLine sc String[] lines = line.split(" ", 0); lines line.split(" ", 0) line.split line " " 0 int num = Integer.parseInt(lines[0]); num Integer.parseInt(lines[0]) Integer.parseInt Integer lines[0] lines 0 int dis = Integer.parseInt(lines[1]); dis Integer.parseInt(lines[1]) Integer.parseInt Integer lines[1] lines 1 int count = 0; count 0 for (int i = 0; i < num; i++) {
            line = sc.nextLine();
        	String[] lines2 = line.split(" ", 0);
            double pos = Math.sqrt(Long.parseLong(lines2[0]) * Long.parseLong(lines2[0])
              + Long.parseLong(lines2[1]) * Long.parseLong(lines2[1]));
          if (pos <= dis) {
                count++;
            }else{
          }
        } int i = 0; int i = 0; i 0 i < num i num i++ i++ i {
            line = sc.nextLine();
        	String[] lines2 = line.split(" ", 0);
            double pos = Math.sqrt(Long.parseLong(lines2[0]) * Long.parseLong(lines2[0])
              + Long.parseLong(lines2[1]) * Long.parseLong(lines2[1]));
          if (pos <= dis) {
                count++;
            }else{
          }
        } {
            line = sc.nextLine();
        	String[] lines2 = line.split(" ", 0);
            double pos = Math.sqrt(Long.parseLong(lines2[0]) * Long.parseLong(lines2[0])
              + Long.parseLong(lines2[1]) * Long.parseLong(lines2[1]));
          if (pos <= dis) {
                count++;
            }else{
          }
        } line = sc.nextLine() line sc.nextLine() sc.nextLine sc String[] lines2 = line.split(" ", 0); lines2 line.split(" ", 0) line.split line " " 0 double pos = Math.sqrt(Long.parseLong(lines2[0]) * Long.parseLong(lines2[0])
              + Long.parseLong(lines2[1]) * Long.parseLong(lines2[1])); pos Math.sqrt(Long.parseLong(lines2[0]) * Long.parseLong(lines2[0])
              + Long.parseLong(lines2[1]) * Long.parseLong(lines2[1])) Math.sqrt Math Long.parseLong(lines2[0]) * Long.parseLong(lines2[0])
              + Long.parseLong(lines2[1]) * Long.parseLong(lines2[1]) Long.parseLong(lines2[0]) * Long.parseLong(lines2[0]) Long.parseLong(lines2[0]) Long.parseLong Long lines2[0] lines2 0 Long.parseLong(lines2[0]) Long.parseLong Long lines2[0] lines2 0 Long.parseLong(lines2[1]) * Long.parseLong(lines2[1]) Long.parseLong(lines2[1]) Long.parseLong Long lines2[1] lines2 1 Long.parseLong(lines2[1]) Long.parseLong Long lines2[1] lines2 1 if (pos <= dis) {
                count++;
            }else{
          } pos <= dis pos dis {
                count++;
            } count++ count {
          } 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) {
        Scanner sc = new Scanner(System.in);
        String line = sc.nextLine();
        String[] lines = line.split(" ", 0);
      
        int num = Integer.parseInt(lines[0]);
        int dis = Integer.parseInt(lines[1]);
      
      int count = 0;
        for (int i = 0; i < num; i++) {
            line = sc.nextLine();
        	String[] lines2 = line.split(" ", 0);
            double pos = Math.sqrt(Long.parseLong(lines2[0]) * Long.parseLong(lines2[0])
              + Long.parseLong(lines2[1]) * Long.parseLong(lines2[1]));
          if (pos <= dis) {
                count++;
            }else{
          }
        }
        
     System.out.println(count);
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String line = sc.nextLine();
        String[] lines = line.split(" ", 0);
      
        int num = Integer.parseInt(lines[0]);
        int dis = Integer.parseInt(lines[1]);
      
      int count = 0;
        for (int i = 0; i < num; i++) {
            line = sc.nextLine();
        	String[] lines2 = line.split(" ", 0);
            double pos = Math.sqrt(Long.parseLong(lines2[0]) * Long.parseLong(lines2[0])
              + Long.parseLong(lines2[1]) * Long.parseLong(lines2[1]));
          if (pos <= dis) {
                count++;
            }else{
          }
        }
        
     System.out.println(count);
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String line = sc.nextLine();
        String[] lines = line.split(" ", 0);
      
        int num = Integer.parseInt(lines[0]);
        int dis = Integer.parseInt(lines[1]);
      
      int count = 0;
        for (int i = 0; i < num; i++) {
            line = sc.nextLine();
        	String[] lines2 = line.split(" ", 0);
            double pos = Math.sqrt(Long.parseLong(lines2[0]) * Long.parseLong(lines2[0])
              + Long.parseLong(lines2[1]) * Long.parseLong(lines2[1]));
          if (pos <= dis) {
                count++;
            }else{
          }
        }
        
     System.out.println(count);
    }
}