import math

N, M = map(int, input().split())
P = [tuple(map(int, input().split())) for i in range(N)]

ans = 0

for i in range(N):
    d = math.sqrt(P[i][0]**2 + P[i][1]**2)
    if d <= M:
        ans += 1

print(ans) import math math N, M = map(int, input().split()) N map(int, input().split()) map int input().split() ().split () input split M tuple(map(int, input().split())) for i in range(N) for i in range(N) i range(N) range N for i in range(N) tuple(map(int, input().split())) tuple map(int, input().split()) map int input().split() ().split () input split P = [tuple(map(int, input().split())) for i in range(N)] P [tuple(map(int, input().split())) for i in range(N)] ans = 0 ans 0 for i in range(N):
    d = math.sqrt(P[i][0]**2 + P[i][1]**2)
    if d <= M:
        ans += 1 i range(N) range N d = math.sqrt(P[i][0]**2 + P[i][1]**2) d math.sqrt(P[i][0]**2 + P[i][1]**2) math.sqrt math sqrt P[i][0]**2 + P[i][1]**2 P[i][0]**2 P[i][0] [i] P i 0 2 P[i][1]**2 P[i][1] [i] P i 1 2 if d <= M:
        ans += 1 d <= M d M ans += 1 ans 1 print(ans) print ans ans += 1 1 ans P = [tuple(map(int, input().split())) for i in range(N)] [tuple(map(int, input().split())) for i in range(N)] P d = math.sqrt(P[i][0]**2 + P[i][1]**2) math.sqrt(P[i][0]**2 + P[i][1]**2) d N, M = map(int, input().split()) map(int, input().split()) N ans = 0 0 ans M = map(int, input().split()) map(int, input().split()) M
import math

N, M = map(int, input().split())
P = [tuple(map(int, input().split())) for i in range(N)]

ans = 0

for i in range(N):
    d = math.sqrt(P[i][0]**2 + P[i][1]**2)
    if d <= M:
        ans += 1

print(ans)
