import math

N,D=(int(x) for x in input().split())

answer=0
for i in range(N):
  A,B=(int(x) for x in input().split())
  h=math.sqrt(A*A+B*B)
  if  D>=h:
    answer+=1
print(answer) import math math int(x) for x in input().split() for x in input().split() x input().split() ().split () input split for x in input().split() int(x) int x N,D=(int(x) for x in input().split()) N (int(x) for x in input().split()) D answer=0 answer 0 for i in range(N):
  A,B=(int(x) for x in input().split())
  h=math.sqrt(A*A+B*B)
  if  D>=h:
    answer+=1 i range(N) range N int(x) for x in input().split() for x in input().split() x input().split() ().split () input split for x in input().split() int(x) int x A,B=(int(x) for x in input().split()) A (int(x) for x in input().split()) B h=math.sqrt(A*A+B*B) h math.sqrt(A*A+B*B) math.sqrt math sqrt A*A+B*B A*A A A B*B B B if  D>=h:
    answer+=1 D>=h D h answer+=1 answer 1 print(answer) print answer answer=0 0 answer h=math.sqrt(A*A+B*B) math.sqrt(A*A+B*B) h answer+=1 1 answer D=(int(x) for x in input().split()) (int(x) for x in input().split()) D N,D=(int(x) for x in input().split()) (int(x) for x in input().split()) N A,B=(int(x) for x in input().split()) (int(x) for x in input().split()) A B=(int(x) for x in input().split()) (int(x) for x in input().split()) B
import math

N,D=(int(x) for x in input().split())

answer=0
for i in range(N):
  A,B=(int(x) for x in input().split())
  h=math.sqrt(A*A+B*B)
  if  D>=h:
    answer+=1
print(answer)
