import sys

import numpy as np

import math

import collections

import copy

from collections import deque 

from functools import reduce

from itertools import product

from itertools import combinations



# input = sys.stdin.readline

N, D = list(map(int, input().split()))

zn = [list(map(int, input().split())) for _ in range(N)]

ans = 0

for z in zn:

    x, y = z

    kyo = np.sqrt(x**2 + y**2)

    if (kyo <= D):

        ans += 1



print(ans)





















N, D = list(map(int, input().split()))

Zn = [list(map(int, input().split())) for _ in range(N)]

ans = 0

for Z in Zn:

    X, Y = Z

    if (X**2 + Y**2 <= D**2):

        ans += 1

print(ans)
import sys
import numpy as np
import math
import collections
import copy
from collections import deque
from functools import reduce
from itertools import product
from itertools import combinations

# input = sys.stdin.readline
N, D = list(map(int, input().split()))
zn = [list(map(int, input().split())) for _ in range(N)]
ans = 0
for z in zn:
    x, y = z
    kyo = np.sqrt(x**2 + y**2)
    if kyo <= D:
        ans += 1
print(ans)

N, D = list(map(int, input().split()))
Zn = [list(map(int, input().split())) for _ in range(N)]
ans = 0
for Z in Zn:
    X, Y = Z
    if X**2 + Y**2 <= D**2:
        ans += 1
print(ans)

-import sys -import numpy as np -import math -import collections -import copy -from collections import deque -from functools import reduce -from itertools import product -from itertools import combinations - -# input = sys.stdin.readline -zn = [list(map(int, input().split())) for _ in range(N)] +Zn = [list(map(int, input().split())) for _ in range(N)] -for z in zn: -    x, y = z -    kyo = np.sqrt(x**2 + y**2) -    if kyo <= D: +for Z in Zn: +    X, Y = Z +    if X**2 + Y**2 <= D**2: