import math

N,D = map(int,input().split())
XY = [tuple(map(int,input().split())) for _ in range(N)]

cnt = 0
for x, y in XY:
  if math.sqrt(x**2 + y**2) <= D:
    cnt += 1
    
print(cnt) import math math N,D = map(int,input().split()) N map(int,input().split()) map int input().split() ().split () input split D tuple(map(int,input().split())) for _ in range(N) for _ in range(N) _ range(N) range N for _ in range(N) tuple(map(int,input().split())) tuple map(int,input().split()) map int input().split() ().split () input split XY = [tuple(map(int,input().split())) for _ in range(N)] XY [tuple(map(int,input().split())) for _ in range(N)] cnt = 0 cnt 0 for x, y in XY:
  if math.sqrt(x**2 + y**2) <= D:
    cnt += 1
     x y XY if math.sqrt(x**2 + y**2) <= D:
    cnt += 1
     math.sqrt(x**2 + y**2) <= D math.sqrt(x**2 + y**2) math.sqrt math sqrt x**2 + y**2 x**2 x 2 y**2 y 2 D cnt += 1 cnt 1 print(cnt) print cnt N,D = map(int,input().split()) map(int,input().split()) N XY = [tuple(map(int,input().split())) for _ in range(N)] [tuple(map(int,input().split())) for _ in range(N)] XY D = map(int,input().split()) map(int,input().split()) D cnt = 0 0 cnt cnt += 1 1 cnt
import math

N,D = map(int,input().split())
XY = [tuple(map(int,input().split())) for _ in range(N)]

cnt = 0
for x, y in XY:
  if math.sqrt(x**2 + y**2) <= D:
    cnt += 1
    
print(cnt)