import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc  = new Scanner(System.in);
		long N = sc.nextLong();
		long D = sc.nextLong();
		long count = 0;
		for(int i =0;i<N;i++) {
			long a = sc.nextLong();
			long b = sc.nextLong();
			double value = Math.sqrt(Math.abs(a)*Math.abs(a)+Math.abs(b)*Math.abs(b) );
			if(value<=D) {
				count = count + 1;
			}
		}
		System.out.println(count);

	}

} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		Scanner sc  = new Scanner(System.in);
		long N = sc.nextLong();
		long D = sc.nextLong();
		long count = 0;
		for(int i =0;i<N;i++) {
			long a = sc.nextLong();
			long b = sc.nextLong();
			double value = Math.sqrt(Math.abs(a)*Math.abs(a)+Math.abs(b)*Math.abs(b) );
			if(value<=D) {
				count = count + 1;
			}
		}
		System.out.println(count);

	}

} Main public static void main(String[] args) {
		Scanner sc  = new Scanner(System.in);
		long N = sc.nextLong();
		long D = sc.nextLong();
		long count = 0;
		for(int i =0;i<N;i++) {
			long a = sc.nextLong();
			long b = sc.nextLong();
			double value = Math.sqrt(Math.abs(a)*Math.abs(a)+Math.abs(b)*Math.abs(b) );
			if(value<=D) {
				count = count + 1;
			}
		}
		System.out.println(count);

	} main {
		Scanner sc  = new Scanner(System.in);
		long N = sc.nextLong();
		long D = sc.nextLong();
		long count = 0;
		for(int i =0;i<N;i++) {
			long a = sc.nextLong();
			long b = sc.nextLong();
			double value = Math.sqrt(Math.abs(a)*Math.abs(a)+Math.abs(b)*Math.abs(b) );
			if(value<=D) {
				count = count + 1;
			}
		}
		System.out.println(count);

	} Scanner sc  = new Scanner(System.in); sc new Scanner(System.in) long N = sc.nextLong(); N sc.nextLong() sc.nextLong sc long D = sc.nextLong(); D sc.nextLong() sc.nextLong sc long count = 0; count 0 for(int i =0;i<N;i++) {
			long a = sc.nextLong();
			long b = sc.nextLong();
			double value = Math.sqrt(Math.abs(a)*Math.abs(a)+Math.abs(b)*Math.abs(b) );
			if(value<=D) {
				count = count + 1;
			}
		} int i =0; int i =0; i 0 i<N i N i++ i++ i {
			long a = sc.nextLong();
			long b = sc.nextLong();
			double value = Math.sqrt(Math.abs(a)*Math.abs(a)+Math.abs(b)*Math.abs(b) );
			if(value<=D) {
				count = count + 1;
			}
		} {
			long a = sc.nextLong();
			long b = sc.nextLong();
			double value = Math.sqrt(Math.abs(a)*Math.abs(a)+Math.abs(b)*Math.abs(b) );
			if(value<=D) {
				count = count + 1;
			}
		} long a = sc.nextLong(); a sc.nextLong() sc.nextLong sc long b = sc.nextLong(); b sc.nextLong() sc.nextLong sc double value = Math.sqrt(Math.abs(a)*Math.abs(a)+Math.abs(b)*Math.abs(b) ); value Math.sqrt(Math.abs(a)*Math.abs(a)+Math.abs(b)*Math.abs(b) ) Math.sqrt Math Math.abs(a)*Math.abs(a)+Math.abs(b)*Math.abs(b) Math.abs(a)*Math.abs(a) Math.abs(a) Math.abs Math a Math.abs(a) Math.abs Math a Math.abs(b)*Math.abs(b) Math.abs(b) Math.abs Math b Math.abs(b) Math.abs Math b if(value<=D) {
				count = count + 1;
			} value<=D value D {
				count = count + 1;
			} count = count + 1 count count + 1 count 1 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);
		long N = sc.nextLong();
		long D = sc.nextLong();
		long count = 0;
		for(int i =0;i<N;i++) {
			long a = sc.nextLong();
			long b = sc.nextLong();
			double value = Math.sqrt(Math.abs(a)*Math.abs(a)+Math.abs(b)*Math.abs(b) );
			if(value<=D) {
				count = count + 1;
			}
		}
		System.out.println(count);

	}

} public class Main {

	public static void main(String[] args) {
		Scanner sc  = new Scanner(System.in);
		long N = sc.nextLong();
		long D = sc.nextLong();
		long count = 0;
		for(int i =0;i<N;i++) {
			long a = sc.nextLong();
			long b = sc.nextLong();
			double value = Math.sqrt(Math.abs(a)*Math.abs(a)+Math.abs(b)*Math.abs(b) );
			if(value<=D) {
				count = count + 1;
			}
		}
		System.out.println(count);

	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc  = new Scanner(System.in);
		long N = sc.nextLong();
		long D = sc.nextLong();
		long count = 0;
		for(int i =0;i<N;i++) {
			long a = sc.nextLong();
			long b = sc.nextLong();
			double value = Math.sqrt(Math.abs(a)*Math.abs(a)+Math.abs(b)*Math.abs(b) );
			if(value<=D) {
				count = count + 1;
			}
		}
		System.out.println(count);

	}

}
