import math

n, d = map(int, input().split())
xy = [list(map(int, input().split())) for _ in range(n)]

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

n, d = map(int, input().split())
xy = [list(map(int, input().split())) for _ in range(n)]

ans = 0
for x, y in xy:
    if math.sqrt(x**2 + y**2)<=d:
        ans += 1
print(ans)
