# -*- coding: utf-8 -*-
"""
Created on Mon Aug 24 12:23:05 2020

@author: vivek
"""

n,d=[int(i) for i in input().strip().split(" ")]
ans=0
for _ in range(n):
  x,y=[int(i) for i in input().strip().split(" ")]
  if x*x+y*y<=d*d:
    ans+=1
print(ans) """
Created on Mon Aug 24 12:23:05 2020

@author: vivek
""" int(i) for i in input().strip().split(" ") for i in input().strip().split(" ") i input().strip().split(" ") ().strip().split ().strip() ().strip () input strip split " " for i in input().strip().split(" ") int(i) int i n,d=[int(i) for i in input().strip().split(" ")] n [int(i) for i in input().strip().split(" ")] d ans=0 ans 0 for _ in range(n):
  x,y=[int(i) for i in input().strip().split(" ")]
  if x*x+y*y<=d*d:
    ans+=1 _ range(n) range n int(i) for i in input().strip().split(" ") for i in input().strip().split(" ") i input().strip().split(" ") ().strip().split ().strip() ().strip () input strip split " " for i in input().strip().split(" ") int(i) int i x,y=[int(i) for i in input().strip().split(" ")] x [int(i) for i in input().strip().split(" ")] y if x*x+y*y<=d*d:
    ans+=1 x*x+y*y<=d*d x*x+y*y x*x x x y*y y y d*d d d ans+=1 ans 1 print(ans) print ans d=[int(i) for i in input().strip().split(" ")] [int(i) for i in input().strip().split(" ")] d ans+=1 1 ans n,d=[int(i) for i in input().strip().split(" ")] [int(i) for i in input().strip().split(" ")] n ans=0 0 ans y=[int(i) for i in input().strip().split(" ")] [int(i) for i in input().strip().split(" ")] y x,y=[int(i) for i in input().strip().split(" ")] [int(i) for i in input().strip().split(" ")] x
# -*- coding: utf-8 -*-
"""
Created on Mon Aug 24 12:23:05 2020

@author: vivek
"""

n,d=[int(i) for i in input().strip().split(" ")]
ans=0
for _ in range(n):
  x,y=[int(i) for i in input().strip().split(" ")]
  if x*x+y*y<=d*d:
    ans+=1
print(ans)