code: def sampled_pts(pts, lb, ub, map=None):
      """
      determine the number of sample points inside the given bounds
  
      Inputs:
          pts -- a list of sample points
          lb -- a list of lower bounds
          ub -- a list of upper bounds
          map -- the mapping function [Default is builtins.map]"""
      if map is None:
          from builtins import map
      from numpy import inf, transpose, atleast_2d
      from mystic.tools import wrap_bounds
  
      def zero(x):
          return 0
  
      f = wrap_bounds(zero, lb, ub)
      results = map(f, atleast_2d(transpose(pts)).tolist())
      # npts = len(list(filter(lambda Fx: Fx != inf, results)))
      npts = list(results).count(
          0
      )  # outside of bounds evaluates to inf
      return npts
  
file_path: mystic/mystic/math/samples.py
label_desc: Use image node_id 13 for calling a global function with example usage: sampled_pts(pts, lb, ub, map) and returns: npts, int