import math

N, D = map(int, input().split())
XY = []
for _ in range(N):
    x, y = map(int, input().split())
    XY.append([x,y])

cnt = 0
for xy in XY:
    if math.sqrt(pow(xy[0], 2) + pow(xy[1], 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 XY = [] XY [] for _ in range(N):
    x, y = map(int, input().split())
    XY.append([x,y]) _ range(N) range N x, y = map(int, input().split()) x map(int, input().split()) map int input().split() ().split () input split y XY.append([x,y]) XY.append XY append [x,y] x y cnt = 0 cnt 0 for xy in XY:
    if math.sqrt(pow(xy[0], 2) + pow(xy[1], 2)) <= D:
        cnt += 1 xy XY if math.sqrt(pow(xy[0], 2) + pow(xy[1], 2)) <= D:
        cnt += 1 math.sqrt(pow(xy[0], 2) + pow(xy[1], 2)) <= D math.sqrt(pow(xy[0], 2) + pow(xy[1], 2)) math.sqrt math sqrt pow(xy[0], 2) + pow(xy[1], 2) pow(xy[0], 2) pow xy[0] xy 0 2 pow(xy[1], 2) pow xy[1] xy 1 2 D cnt += 1 cnt 1 print(cnt) print cnt cnt = 0 0 cnt cnt += 1 1 cnt N, D = map(int, input().split()) map(int, input().split()) N XY = [] [] XY y = map(int, input().split()) map(int, input().split()) y x, y = map(int, input().split()) map(int, input().split()) x D = map(int, input().split()) map(int, input().split()) D
import math

N, D = map(int, input().split())
XY = []
for _ in range(N):
    x, y = map(int, input().split())
    XY.append([x,y])

cnt = 0
for xy in XY:
    if math.sqrt(pow(xy[0], 2) + pow(xy[1], 2)) <= D:
        cnt += 1
print(cnt)

