import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int a = sc.nextInt();
		// スペース区切りの整数の入力
		long b = sc.nextLong();
		// 文字列の入力
		long[] d = new long[a];
		long[] e = new long[a];
		for(int i = 0; i < a; i++){
			d[i] = sc.nextLong();
			e[i] = sc.nextLong();
		} 
		int f = 0;
		
		for(int i = 0; i < a; i++){
			if(Math.sqrt(d[i] * d[i] + e[i] * e[i]) <= b){
				f++;
			}
		}
		System.out.println(f);
		
		
	}
} import java.util.*; util.* java public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int a = sc.nextInt();
		// スペース区切りの整数の入力
		long b = sc.nextLong();
		// 文字列の入力
		long[] d = new long[a];
		long[] e = new long[a];
		for(int i = 0; i < a; i++){
			d[i] = sc.nextLong();
			e[i] = sc.nextLong();
		} 
		int f = 0;
		
		for(int i = 0; i < a; i++){
			if(Math.sqrt(d[i] * d[i] + e[i] * e[i]) <= b){
				f++;
			}
		}
		System.out.println(f);
		
		
	}
} Main public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int a = sc.nextInt();
		// スペース区切りの整数の入力
		long b = sc.nextLong();
		// 文字列の入力
		long[] d = new long[a];
		long[] e = new long[a];
		for(int i = 0; i < a; i++){
			d[i] = sc.nextLong();
			e[i] = sc.nextLong();
		} 
		int f = 0;
		
		for(int i = 0; i < a; i++){
			if(Math.sqrt(d[i] * d[i] + e[i] * e[i]) <= b){
				f++;
			}
		}
		System.out.println(f);
		
		
	} main {
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int a = sc.nextInt();
		// スペース区切りの整数の入力
		long b = sc.nextLong();
		// 文字列の入力
		long[] d = new long[a];
		long[] e = new long[a];
		for(int i = 0; i < a; i++){
			d[i] = sc.nextLong();
			e[i] = sc.nextLong();
		} 
		int f = 0;
		
		for(int i = 0; i < a; i++){
			if(Math.sqrt(d[i] * d[i] + e[i] * e[i]) <= b){
				f++;
			}
		}
		System.out.println(f);
		
		
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc long b = sc.nextLong(); b sc.nextLong() sc.nextLong sc long[] d = new long[a]; d new long[a] a long[] e = new long[a]; e new long[a] a for(int i = 0; i < a; i++){
			d[i] = sc.nextLong();
			e[i] = sc.nextLong();
		} int i = 0; int i = 0; i 0 i < a i a i++ i++ i {
			d[i] = sc.nextLong();
			e[i] = sc.nextLong();
		} {
			d[i] = sc.nextLong();
			e[i] = sc.nextLong();
		} d[i] = sc.nextLong() d[i] d i sc.nextLong() sc.nextLong sc e[i] = sc.nextLong() e[i] e i sc.nextLong() sc.nextLong sc int f = 0; f 0 for(int i = 0; i < a; i++){
			if(Math.sqrt(d[i] * d[i] + e[i] * e[i]) <= b){
				f++;
			}
		} int i = 0; int i = 0; i 0 i < a i a i++ i++ i {
			if(Math.sqrt(d[i] * d[i] + e[i] * e[i]) <= b){
				f++;
			}
		} {
			if(Math.sqrt(d[i] * d[i] + e[i] * e[i]) <= b){
				f++;
			}
		} if(Math.sqrt(d[i] * d[i] + e[i] * e[i]) <= b){
				f++;
			} Math.sqrt(d[i] * d[i] + e[i] * e[i]) <= b Math.sqrt(d[i] * d[i] + e[i] * e[i]) Math.sqrt Math d[i] * d[i] + e[i] * e[i] d[i] * d[i] d[i] d i d[i] d i e[i] * e[i] e[i] e i e[i] e i b {
				f++;
			} f++ f System.out.println(f) System.out.println System.out System System.out f String[] args args public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int a = sc.nextInt();
		// スペース区切りの整数の入力
		long b = sc.nextLong();
		// 文字列の入力
		long[] d = new long[a];
		long[] e = new long[a];
		for(int i = 0; i < a; i++){
			d[i] = sc.nextLong();
			e[i] = sc.nextLong();
		} 
		int f = 0;
		
		for(int i = 0; i < a; i++){
			if(Math.sqrt(d[i] * d[i] + e[i] * e[i]) <= b){
				f++;
			}
		}
		System.out.println(f);
		
		
	}
} public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int a = sc.nextInt();
		// スペース区切りの整数の入力
		long b = sc.nextLong();
		// 文字列の入力
		long[] d = new long[a];
		long[] e = new long[a];
		for(int i = 0; i < a; i++){
			d[i] = sc.nextLong();
			e[i] = sc.nextLong();
		} 
		int f = 0;
		
		for(int i = 0; i < a; i++){
			if(Math.sqrt(d[i] * d[i] + e[i] * e[i]) <= b){
				f++;
			}
		}
		System.out.println(f);
		
		
	}
} Main
import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int a = sc.nextInt();
		// スペース区切りの整数の入力
		long b = sc.nextLong();
		// 文字列の入力
		long[] d = new long[a];
		long[] e = new long[a];
		for(int i = 0; i < a; i++){
			d[i] = sc.nextLong();
			e[i] = sc.nextLong();
		} 
		int f = 0;
		
		for(int i = 0; i < a; i++){
			if(Math.sqrt(d[i] * d[i] + e[i] * e[i]) <= b){
				f++;
			}
		}
		System.out.println(f);
		
		
	}
}