import math

N, D = map(int, input().split())
cnt = 0

for n in range(N):
    X, Y = map(int, input().split())
    check = math.sqrt(X**2 + Y**2)
    if check <= D:
        cnt += 1

print(cnt) import math math N, D = map(int, input().split()) N map(int, input().split()) map int input().split() ().split () input split D cnt = 0 cnt 0 for n in range(N):
    X, Y = map(int, input().split())
    check = math.sqrt(X**2 + Y**2)
    if check <= D:
        cnt += 1 n range(N) range N X, Y = map(int, input().split()) X map(int, input().split()) map int input().split() ().split () input split Y check = math.sqrt(X**2 + Y**2) check math.sqrt(X**2 + Y**2) math.sqrt math sqrt X**2 + Y**2 X**2 X 2 Y**2 Y 2 if check <= D:
        cnt += 1 check <= D check D cnt += 1 cnt 1 print(cnt) print cnt D = map(int, input().split()) map(int, input().split()) D cnt += 1 1 cnt X, Y = map(int, input().split()) map(int, input().split()) X Y = map(int, input().split()) map(int, input().split()) Y N, D = map(int, input().split()) map(int, input().split()) N check = math.sqrt(X**2 + Y**2) math.sqrt(X**2 + Y**2) check cnt = 0 0 cnt
import math

N, D = map(int, input().split())
cnt = 0

for n in range(N):
    X, Y = map(int, input().split())
    check = math.sqrt(X**2 + Y**2)
    if check <= D:
        cnt += 1

print(cnt)