N, D = map(int, input().split(" "))
cnt = 0
for _ in range(N):
    x, y = map(int, input().split(" "))
    r = (x**2+y**2)**0.5
    if D >= r:
        cnt += 1
print(cnt) N, D = map(int, input().split(" ")) N map(int, input().split(" ")) map int input().split(" ") ().split () input split " " D cnt = 0 cnt 0 for _ in range(N):
    x, y = map(int, input().split(" "))
    r = (x**2+y**2)**0.5
    if D >= r:
        cnt += 1 _ range(N) range N x, y = map(int, input().split(" ")) x map(int, input().split(" ")) map int input().split(" ") ().split () input split " " y r = (x**2+y**2)**0.5 r (x**2+y**2)**0.5 x**2+y**2 x**2 x 2 y**2 y 2 0.5 if D >= r:
        cnt += 1 D >= r D r cnt += 1 cnt 1 print(cnt) print cnt D = map(int, input().split(" ")) map(int, input().split(" ")) D r = (x**2+y**2)**0.5 (x**2+y**2)**0.5 r y = map(int, input().split(" ")) map(int, input().split(" ")) y cnt = 0 0 cnt x, y = map(int, input().split(" ")) map(int, input().split(" ")) x N, D = map(int, input().split(" ")) map(int, input().split(" ")) N cnt += 1 1 cnt
N, D = map(int, input().split(" "))
cnt = 0
for _ in range(N):
    x, y = map(int, input().split(" "))
    r = (x**2+y**2)**0.5
    if D >= r:
        cnt += 1
print(cnt)