import math

n, d = list(map(int, input().split()))
d2 = d ** 2
cnt = 0

for _ in range(n):
    x, y = list(map(int, input().split()))
    if x ** 2 + y ** 2 <= d2:
        cnt += 1

print(cnt) import math math n, d = list(map(int, input().split())) n list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split d d2 = d ** 2 d2 d ** 2 d 2 cnt = 0 cnt 0 for _ in range(n):
    x, y = list(map(int, input().split()))
    if x ** 2 + y ** 2 <= d2:
        cnt += 1 _ range(n) range n x, y = list(map(int, input().split())) x list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split y if x ** 2 + y ** 2 <= d2:
        cnt += 1 x ** 2 + y ** 2 <= d2 x ** 2 + y ** 2 x ** 2 x 2 y ** 2 y 2 d2 cnt += 1 cnt 1 print(cnt) print cnt n, d = list(map(int, input().split())) list(map(int, input().split())) n d = list(map(int, input().split())) list(map(int, input().split())) d x, y = list(map(int, input().split())) list(map(int, input().split())) x cnt = 0 0 cnt d2 = d ** 2 d ** 2 d2 cnt += 1 1 cnt y = list(map(int, input().split())) list(map(int, input().split())) y
import math

n, d = list(map(int, input().split()))
d2 = d ** 2
cnt = 0

for _ in range(n):
    x, y = list(map(int, input().split()))
    if x ** 2 + y ** 2 <= d2:
        cnt += 1

print(cnt)