import sys
N, D = map(int, input().split())
ans = 0
for _ in range(N):
    x, y = map(int, sys.stdin.readline().split())
    if x **2 + y**2 <= D**2:
        ans += 1
print(ans) import sys sys N, D = map(int, input().split()) N map(int, input().split()) map int input().split() ().split () input split D ans = 0 ans 0 for _ in range(N):
    x, y = map(int, sys.stdin.readline().split())
    if x **2 + y**2 <= D**2:
        ans += 1 _ range(N) range N x, y = map(int, sys.stdin.readline().split()) x map(int, sys.stdin.readline().split()) map int sys.stdin.readline().split() sys.stdin.readline().split sys.stdin.readline() sys.stdin.readline sys.stdin sys stdin readline split y if x **2 + y**2 <= D**2:
        ans += 1 x **2 + y**2 <= D**2 x **2 + y**2 x **2 x 2 y**2 y 2 D**2 D 2 ans += 1 ans 1 print(ans) print ans ans = 0 0 ans ans += 1 1 ans y = map(int, sys.stdin.readline().split()) map(int, sys.stdin.readline().split()) y D = map(int, input().split()) map(int, input().split()) D N, D = map(int, input().split()) map(int, input().split()) N x, y = map(int, sys.stdin.readline().split()) map(int, sys.stdin.readline().split()) x
import sys
N, D = map(int, input().split())
ans = 0
for _ in range(N):
    x, y = map(int, sys.stdin.readline().split())
    if x **2 + y**2 <= D**2:
        ans += 1
print(ans)