from math import sqrt
N,D=map(int,input().split())
ans = 0
for i in range(N):
    x,y=map(int,input().split())
    dist = sqrt(x*x + y*y)
    if (dist <= D ):
      ans+=1
print(ans) from math import sqrt N,D=map(int,input().split()) N map(int,input().split()) map int input().split() ().split () input split D ans = 0 ans 0 for i in range(N):
    x,y=map(int,input().split())
    dist = sqrt(x*x + y*y)
    if (dist <= D ):
      ans+=1 i range(N) range N x,y=map(int,input().split()) x map(int,input().split()) map int input().split() ().split () input split y dist = sqrt(x*x + y*y) dist sqrt(x*x + y*y) sqrt x*x + y*y x*x x x y*y y y if (dist <= D ):
      ans+=1 dist <= D dist D ans+=1 ans 1 print(ans) print ans D=map(int,input().split()) map(int,input().split()) D dist = sqrt(x*x + y*y) sqrt(x*x + y*y) dist ans = 0 0 ans y=map(int,input().split()) map(int,input().split()) y x,y=map(int,input().split()) map(int,input().split()) x ans+=1 1 ans N,D=map(int,input().split()) map(int,input().split()) N
from math import sqrt
N,D=map(int,input().split())
ans = 0
for i in range(N):
    x,y=map(int,input().split())
    dist = sqrt(x*x + y*y)
    if (dist <= D ):
      ans+=1
print(ans)
