import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		try (Scanner sc = new Scanner(System.in)) {
			int n = sc.nextInt();
			double d = sc.nextInt();

			int count = 0;

			for (int i = 0; i < n; i++) {
				double x = sc.nextDouble();
				double y = sc.nextDouble();

				if (d >= calDist(x, y)) {
					count++;
				}
			}

			System.out.println(count);


		} catch (Exception e) {
			// TODO: handle exception
		}
	}

	public static double calDist (double  x, double y) {
		double ans = 0;

		ans = Math.pow(x, 2) + Math.pow(y, 2);
		ans = Math.sqrt(ans);

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

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		try (Scanner sc = new Scanner(System.in)) {
			int n = sc.nextInt();
			double d = sc.nextInt();

			int count = 0;

			for (int i = 0; i < n; i++) {
				double x = sc.nextDouble();
				double y = sc.nextDouble();

				if (d >= calDist(x, y)) {
					count++;
				}
			}

			System.out.println(count);


		} catch (Exception e) {
			// TODO: handle exception
		}
	}

	public static double calDist (double  x, double y) {
		double ans = 0;

		ans = Math.pow(x, 2) + Math.pow(y, 2);
		ans = Math.sqrt(ans);

		return ans;
	}
} Main public static void main(String[] args) {
		// TODO Auto-generated method stub
		try (Scanner sc = new Scanner(System.in)) {
			int n = sc.nextInt();
			double d = sc.nextInt();

			int count = 0;

			for (int i = 0; i < n; i++) {
				double x = sc.nextDouble();
				double y = sc.nextDouble();

				if (d >= calDist(x, y)) {
					count++;
				}
			}

			System.out.println(count);


		} catch (Exception e) {
			// TODO: handle exception
		}
	} main {
		// TODO Auto-generated method stub
		try (Scanner sc = new Scanner(System.in)) {
			int n = sc.nextInt();
			double d = sc.nextInt();

			int count = 0;

			for (int i = 0; i < n; i++) {
				double x = sc.nextDouble();
				double y = sc.nextDouble();

				if (d >= calDist(x, y)) {
					count++;
				}
			}

			System.out.println(count);


		} catch (Exception e) {
			// TODO: handle exception
		}
	} try (Scanner sc = new Scanner(System.in)) {
			int n = sc.nextInt();
			double d = sc.nextInt();

			int count = 0;

			for (int i = 0; i < n; i++) {
				double x = sc.nextDouble();
				double y = sc.nextDouble();

				if (d >= calDist(x, y)) {
					count++;
				}
			}

			System.out.println(count);


		} catch (Exception e) {
			// TODO: handle exception
		} catch (Exception e) {
			// TODO: handle exception
		} Exception e {
			// TODO: handle exception
		} {
			int n = sc.nextInt();
			double d = sc.nextInt();

			int count = 0;

			for (int i = 0; i < n; i++) {
				double x = sc.nextDouble();
				double y = sc.nextDouble();

				if (d >= calDist(x, y)) {
					count++;
				}
			}

			System.out.println(count);


		} Scanner sc = new Scanner(System.in) Scanner sc = new Scanner(System.in) new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc double d = sc.nextInt(); d sc.nextInt() sc.nextInt sc int count = 0; count 0 for (int i = 0; i < n; i++) {
				double x = sc.nextDouble();
				double y = sc.nextDouble();

				if (d >= calDist(x, y)) {
					count++;
				}
			} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
				double x = sc.nextDouble();
				double y = sc.nextDouble();

				if (d >= calDist(x, y)) {
					count++;
				}
			} {
				double x = sc.nextDouble();
				double y = sc.nextDouble();

				if (d >= calDist(x, y)) {
					count++;
				}
			} double x = sc.nextDouble(); x sc.nextDouble() sc.nextDouble sc double y = sc.nextDouble(); y sc.nextDouble() sc.nextDouble sc if (d >= calDist(x, y)) {
					count++;
				} d >= calDist(x, y) d calDist(x, y) calDist x y {
					count++;
				} count++ count System.out.println(count) System.out.println System.out System System.out count String[] args args public static double calDist (double  x, double y) {
		double ans = 0;

		ans = Math.pow(x, 2) + Math.pow(y, 2);
		ans = Math.sqrt(ans);

		return ans;
	} calDist {
		double ans = 0;

		ans = Math.pow(x, 2) + Math.pow(y, 2);
		ans = Math.sqrt(ans);

		return ans;
	} double ans = 0; ans 0 ans = Math.pow(x, 2) + Math.pow(y, 2) ans Math.pow(x, 2) + Math.pow(y, 2) Math.pow(x, 2) Math.pow Math x 2 Math.pow(y, 2) Math.pow Math y 2 ans = Math.sqrt(ans) ans Math.sqrt(ans) Math.sqrt Math ans return ans; ans double  x x double y y public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		try (Scanner sc = new Scanner(System.in)) {
			int n = sc.nextInt();
			double d = sc.nextInt();

			int count = 0;

			for (int i = 0; i < n; i++) {
				double x = sc.nextDouble();
				double y = sc.nextDouble();

				if (d >= calDist(x, y)) {
					count++;
				}
			}

			System.out.println(count);


		} catch (Exception e) {
			// TODO: handle exception
		}
	}

	public static double calDist (double  x, double y) {
		double ans = 0;

		ans = Math.pow(x, 2) + Math.pow(y, 2);
		ans = Math.sqrt(ans);

		return ans;
	}
} public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		try (Scanner sc = new Scanner(System.in)) {
			int n = sc.nextInt();
			double d = sc.nextInt();

			int count = 0;

			for (int i = 0; i < n; i++) {
				double x = sc.nextDouble();
				double y = sc.nextDouble();

				if (d >= calDist(x, y)) {
					count++;
				}
			}

			System.out.println(count);


		} catch (Exception e) {
			// TODO: handle exception
		}
	}

	public static double calDist (double  x, double y) {
		double ans = 0;

		ans = Math.pow(x, 2) + Math.pow(y, 2);
		ans = Math.sqrt(ans);

		return ans;
	}
} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		try (Scanner sc = new Scanner(System.in)) {
			int n = sc.nextInt();
			double d = sc.nextInt();

			int count = 0;

			for (int i = 0; i < n; i++) {
				double x = sc.nextDouble();
				double y = sc.nextDouble();

				if (d >= calDist(x, y)) {
					count++;
				}
			}

			System.out.println(count);


		} catch (Exception e) {
			// TODO: handle exception
		}
	}

	public static double calDist (double  x, double y) {
		double ans = 0;

		ans = Math.pow(x, 2) + Math.pow(y, 2);
		ans = Math.sqrt(ans);

		return ans;
	}
}
