import java.util.Scanner;

public class Main {
	public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int d = scan.nextInt();
		int count = 0;
		long[][] arr = new long[n][2];
		for(int i=0;i<n;i++) {
			arr[i][0] = scan.nextLong();
			arr[i][1] = scan.nextLong();
		}
		scan.close();

		for(int i=0;i<n;i++) {
			if(Math.sqrt((arr[i][0])*(arr[i][0])+(arr[i][1])*(arr[i][1])) <= d) {
				count++;
			}
		}
		System.out.println(count);
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int d = scan.nextInt();
		int count = 0;
		long[][] arr = new long[n][2];
		for(int i=0;i<n;i++) {
			arr[i][0] = scan.nextLong();
			arr[i][1] = scan.nextLong();
		}
		scan.close();

		for(int i=0;i<n;i++) {
			if(Math.sqrt((arr[i][0])*(arr[i][0])+(arr[i][1])*(arr[i][1])) <= d) {
				count++;
			}
		}
		System.out.println(count);
	}
} Main public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int d = scan.nextInt();
		int count = 0;
		long[][] arr = new long[n][2];
		for(int i=0;i<n;i++) {
			arr[i][0] = scan.nextLong();
			arr[i][1] = scan.nextLong();
		}
		scan.close();

		for(int i=0;i<n;i++) {
			if(Math.sqrt((arr[i][0])*(arr[i][0])+(arr[i][1])*(arr[i][1])) <= d) {
				count++;
			}
		}
		System.out.println(count);
	} main {

		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int d = scan.nextInt();
		int count = 0;
		long[][] arr = new long[n][2];
		for(int i=0;i<n;i++) {
			arr[i][0] = scan.nextLong();
			arr[i][1] = scan.nextLong();
		}
		scan.close();

		for(int i=0;i<n;i++) {
			if(Math.sqrt((arr[i][0])*(arr[i][0])+(arr[i][1])*(arr[i][1])) <= d) {
				count++;
			}
		}
		System.out.println(count);
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int n = scan.nextInt(); n scan.nextInt() scan.nextInt scan int d = scan.nextInt(); d scan.nextInt() scan.nextInt scan int count = 0; count 0 long[][] arr = new long[n][2]; arr new long[n][2] n 2 for(int i=0;i<n;i++) {
			arr[i][0] = scan.nextLong();
			arr[i][1] = scan.nextLong();
		} int i=0; int i=0; i 0 i<n i n i++ i++ i {
			arr[i][0] = scan.nextLong();
			arr[i][1] = scan.nextLong();
		} {
			arr[i][0] = scan.nextLong();
			arr[i][1] = scan.nextLong();
		} arr[i][0] = scan.nextLong() arr[i][0] arr[i] arr i 0 scan.nextLong() scan.nextLong scan arr[i][1] = scan.nextLong() arr[i][1] arr[i] arr i 1 scan.nextLong() scan.nextLong scan scan.close() scan.close scan for(int i=0;i<n;i++) {
			if(Math.sqrt((arr[i][0])*(arr[i][0])+(arr[i][1])*(arr[i][1])) <= d) {
				count++;
			}
		} int i=0; int i=0; i 0 i<n i n i++ i++ i {
			if(Math.sqrt((arr[i][0])*(arr[i][0])+(arr[i][1])*(arr[i][1])) <= d) {
				count++;
			}
		} {
			if(Math.sqrt((arr[i][0])*(arr[i][0])+(arr[i][1])*(arr[i][1])) <= d) {
				count++;
			}
		} if(Math.sqrt((arr[i][0])*(arr[i][0])+(arr[i][1])*(arr[i][1])) <= d) {
				count++;
			} Math.sqrt((arr[i][0])*(arr[i][0])+(arr[i][1])*(arr[i][1])) <= d Math.sqrt((arr[i][0])*(arr[i][0])+(arr[i][1])*(arr[i][1])) Math.sqrt Math (arr[i][0])*(arr[i][0])+(arr[i][1])*(arr[i][1]) (arr[i][0])*(arr[i][0]) (arr[i][0]) arr[i] arr i 0 (arr[i][0]) arr[i] arr i 0 (arr[i][1])*(arr[i][1]) (arr[i][1]) arr[i] arr i 1 (arr[i][1]) arr[i] arr i 1 d {
				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 scan = new Scanner(System.in);
		int n = scan.nextInt();
		int d = scan.nextInt();
		int count = 0;
		long[][] arr = new long[n][2];
		for(int i=0;i<n;i++) {
			arr[i][0] = scan.nextLong();
			arr[i][1] = scan.nextLong();
		}
		scan.close();

		for(int i=0;i<n;i++) {
			if(Math.sqrt((arr[i][0])*(arr[i][0])+(arr[i][1])*(arr[i][1])) <= d) {
				count++;
			}
		}
		System.out.println(count);
	}
} public class Main {
	public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int d = scan.nextInt();
		int count = 0;
		long[][] arr = new long[n][2];
		for(int i=0;i<n;i++) {
			arr[i][0] = scan.nextLong();
			arr[i][1] = scan.nextLong();
		}
		scan.close();

		for(int i=0;i<n;i++) {
			if(Math.sqrt((arr[i][0])*(arr[i][0])+(arr[i][1])*(arr[i][1])) <= d) {
				count++;
			}
		}
		System.out.println(count);
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int d = scan.nextInt();
		int count = 0;
		long[][] arr = new long[n][2];
		for(int i=0;i<n;i++) {
			arr[i][0] = scan.nextLong();
			arr[i][1] = scan.nextLong();
		}
		scan.close();

		for(int i=0;i<n;i++) {
			if(Math.sqrt((arr[i][0])*(arr[i][0])+(arr[i][1])*(arr[i][1])) <= d) {
				count++;
			}
		}
		System.out.println(count);
	}
}
