import math

N, M = map(int, input().split())
counter = 0
for _ in range(N):
    a, b = map(int, input().split())
    distance = math.sqrt(abs(a)**2 + abs(b)**2)

    if distance <= M:
        counter += 1

print(counter) import math math N, M = map(int, input().split()) N map(int, input().split()) map int input().split() ().split () input split M counter = 0 counter 0 for _ in range(N):
    a, b = map(int, input().split())
    distance = math.sqrt(abs(a)**2 + abs(b)**2)

    if distance <= M:
        counter += 1 _ range(N) range N a, b = map(int, input().split()) a map(int, input().split()) map int input().split() ().split () input split b distance = math.sqrt(abs(a)**2 + abs(b)**2) distance math.sqrt(abs(a)**2 + abs(b)**2) math.sqrt math sqrt abs(a)**2 + abs(b)**2 abs(a)**2 abs(a) abs a 2 abs(b)**2 abs(b) abs b 2 if distance <= M:
        counter += 1 distance <= M distance M counter += 1 counter 1 print(counter) print counter N, M = map(int, input().split()) map(int, input().split()) N counter += 1 1 counter b = map(int, input().split()) map(int, input().split()) b distance = math.sqrt(abs(a)**2 + abs(b)**2) math.sqrt(abs(a)**2 + abs(b)**2) distance M = map(int, input().split()) map(int, input().split()) M a, b = map(int, input().split()) map(int, input().split()) a counter = 0 0 counter
import math

N, M = map(int, input().split())
counter = 0
for _ in range(N):
    a, b = map(int, input().split())
    distance = math.sqrt(abs(a)**2 + abs(b)**2)

    if distance <= M:
        counter += 1

print(counter)