import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int n = Integer.parseInt(scan.next());
		long d = Long.parseLong(scan.next());
		int count = 0;

		long[] x = new long[n];
		long[] y = new long[n];

		for(int i=0;i<n;i++) {
			x[i] = Long.parseLong(scan.next());
			y[i] = Long.parseLong(scan.next());
			if((x[i] * x[i]) + (y[i] * y[i]) <= (d * d)) {
				count++;
			}
		}

		//プログラムはここに記入

		System.out.println(count);

		scan.close();
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int n = Integer.parseInt(scan.next());
		long d = Long.parseLong(scan.next());
		int count = 0;

		long[] x = new long[n];
		long[] y = new long[n];

		for(int i=0;i<n;i++) {
			x[i] = Long.parseLong(scan.next());
			y[i] = Long.parseLong(scan.next());
			if((x[i] * x[i]) + (y[i] * y[i]) <= (d * d)) {
				count++;
			}
		}

		//プログラムはここに記入

		System.out.println(count);

		scan.close();
	}
} Main public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int n = Integer.parseInt(scan.next());
		long d = Long.parseLong(scan.next());
		int count = 0;

		long[] x = new long[n];
		long[] y = new long[n];

		for(int i=0;i<n;i++) {
			x[i] = Long.parseLong(scan.next());
			y[i] = Long.parseLong(scan.next());
			if((x[i] * x[i]) + (y[i] * y[i]) <= (d * d)) {
				count++;
			}
		}

		//プログラムはここに記入

		System.out.println(count);

		scan.close();
	} main {
		Scanner scan = new Scanner(System.in);
		int n = Integer.parseInt(scan.next());
		long d = Long.parseLong(scan.next());
		int count = 0;

		long[] x = new long[n];
		long[] y = new long[n];

		for(int i=0;i<n;i++) {
			x[i] = Long.parseLong(scan.next());
			y[i] = Long.parseLong(scan.next());
			if((x[i] * x[i]) + (y[i] * y[i]) <= (d * d)) {
				count++;
			}
		}

		//プログラムはここに記入

		System.out.println(count);

		scan.close();
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int n = Integer.parseInt(scan.next()); n Integer.parseInt(scan.next()) Integer.parseInt Integer scan.next() scan.next scan long d = Long.parseLong(scan.next()); d Long.parseLong(scan.next()) Long.parseLong Long scan.next() scan.next scan int count = 0; count 0 long[] x = new long[n]; x new long[n] n long[] y = new long[n]; y new long[n] n for(int i=0;i<n;i++) {
			x[i] = Long.parseLong(scan.next());
			y[i] = Long.parseLong(scan.next());
			if((x[i] * x[i]) + (y[i] * y[i]) <= (d * d)) {
				count++;
			}
		} int i=0; int i=0; i 0 i<n i n i++ i++ i {
			x[i] = Long.parseLong(scan.next());
			y[i] = Long.parseLong(scan.next());
			if((x[i] * x[i]) + (y[i] * y[i]) <= (d * d)) {
				count++;
			}
		} {
			x[i] = Long.parseLong(scan.next());
			y[i] = Long.parseLong(scan.next());
			if((x[i] * x[i]) + (y[i] * y[i]) <= (d * d)) {
				count++;
			}
		} x[i] = Long.parseLong(scan.next()) x[i] x i Long.parseLong(scan.next()) Long.parseLong Long scan.next() scan.next scan y[i] = Long.parseLong(scan.next()) y[i] y i Long.parseLong(scan.next()) Long.parseLong Long scan.next() scan.next scan if((x[i] * x[i]) + (y[i] * y[i]) <= (d * d)) {
				count++;
			} (x[i] * x[i]) + (y[i] * y[i]) <= (d * d) (x[i] * x[i]) + (y[i] * y[i]) (x[i] * x[i]) x[i] x i x[i] x i (y[i] * y[i]) y[i] y i y[i] y i (d * d) d d {
				count++;
			} count++ count System.out.println(count) System.out.println System.out System System.out count scan.close() scan.close scan String[] args args public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int n = Integer.parseInt(scan.next());
		long d = Long.parseLong(scan.next());
		int count = 0;

		long[] x = new long[n];
		long[] y = new long[n];

		for(int i=0;i<n;i++) {
			x[i] = Long.parseLong(scan.next());
			y[i] = Long.parseLong(scan.next());
			if((x[i] * x[i]) + (y[i] * y[i]) <= (d * d)) {
				count++;
			}
		}

		//プログラムはここに記入

		System.out.println(count);

		scan.close();
	}
} public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int n = Integer.parseInt(scan.next());
		long d = Long.parseLong(scan.next());
		int count = 0;

		long[] x = new long[n];
		long[] y = new long[n];

		for(int i=0;i<n;i++) {
			x[i] = Long.parseLong(scan.next());
			y[i] = Long.parseLong(scan.next());
			if((x[i] * x[i]) + (y[i] * y[i]) <= (d * d)) {
				count++;
			}
		}

		//プログラムはここに記入

		System.out.println(count);

		scan.close();
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int n = Integer.parseInt(scan.next());
		long d = Long.parseLong(scan.next());
		int count = 0;

		long[] x = new long[n];
		long[] y = new long[n];

		for(int i=0;i<n;i++) {
			x[i] = Long.parseLong(scan.next());
			y[i] = Long.parseLong(scan.next());
			if((x[i] * x[i]) + (y[i] * y[i]) <= (d * d)) {
				count++;
			}
		}

		//プログラムはここに記入

		System.out.println(count);

		scan.close();
	}
}
