import sys, math, itertools, collections, bisect
input = lambda: sys.stdin.buffer.readline().rstrip().decode('utf-8')
inf = float('inf') ;mod = 10**9+7
mans = inf ;ans = 0 ;count = 0 ;pro = 1

n,d = map(int,input().split())
for i in range(n):
  x,y = map(int,input().split())
  if x**2 + y ** 2 <= d**2:
    count += 1
print(count) import sys, math, itertools, collections, bisect sys math itertools collections bisect input = lambda: sys.stdin.buffer.readline().rstrip().decode('utf-8') input lambda: sys.stdin.buffer.readline().rstrip().decode('utf-8') sys.stdin.buffer.readline().rstrip().decode('utf-8') sys.stdin.buffer.readline().rstrip().decode sys.stdin.buffer.readline().rstrip() sys.stdin.buffer.readline().rstrip sys.stdin.buffer.readline() sys.stdin.buffer.readline sys.stdin.buffer sys.stdin sys stdin buffer readline rstrip decode 'utf-8' inf = float('inf') inf float('inf') float 'inf' mod = 10**9+7 mod 10**9+7 10**9 10 9 7 mans = inf mans inf ans = 0 ans 0 count = 0 count 0 pro = 1 pro 1 n,d = map(int,input().split()) n map(int,input().split()) map int input().split() ().split () input split d for i in range(n):
  x,y = map(int,input().split())
  if x**2 + y ** 2 <= d**2:
    count += 1 i range(n) range n x,y = map(int,input().split()) x map(int,input().split()) map int input().split() ().split () input split y if x**2 + y ** 2 <= d**2:
    count += 1 x**2 + y ** 2 <= d**2 x**2 + y ** 2 x**2 x 2 y ** 2 y 2 d**2 d 2 count += 1 count 1 print(count) print count mod = 10**9+7 10**9+7 mod input = lambda: sys.stdin.buffer.readline().rstrip().decode('utf-8') lambda: sys.stdin.buffer.readline().rstrip().decode('utf-8') input count = 0 0 count d = map(int,input().split()) map(int,input().split()) d x,y = map(int,input().split()) map(int,input().split()) x pro = 1 1 pro count += 1 1 count mans = inf inf mans ans = 0 0 ans n,d = map(int,input().split()) map(int,input().split()) n y = map(int,input().split()) map(int,input().split()) y inf = float('inf') float('inf') inf
import sys, math, itertools, collections, bisect
input = lambda: sys.stdin.buffer.readline().rstrip().decode('utf-8')
inf = float('inf') ;mod = 10**9+7
mans = inf ;ans = 0 ;count = 0 ;pro = 1

n,d = map(int,input().split())
for i in range(n):
  x,y = map(int,input().split())
  if x**2 + y ** 2 <= d**2:
    count += 1
print(count)