code: def _basic_intersects_count(lhs, rhs):
      """Utility method that returns the number of points in the lhs geometry
      that intersect with the rhs geometry."""
      pli = _basic_intersects_pli(lhs, rhs)
      if len(pli[1]) == 0:
          return _zero_series(len(rhs))
      intersections = _points_and_lines_to_multipoints(pli[1], pli[0])
      sizes = cudf.Series(intersections.sizes)
      # If the result is degenerate
      is_degenerate = _multipoints_is_degenerate(intersections)
      # If all the points in the intersection are in the rhs
      if len(is_degenerate) > 0:
          sizes[is_degenerate] = 1
      return sizes
  
file_path: cuspatial/python/cuspatial/cuspatial/core/binpreds/basic_predicates.py
imports: import cudf
  from cuspatial.core.binops.equals_count import pairwise_multipoint_equals_count
  from cuspatial.utils.binpred_utils import _linestrings_from_geometry, _multipoints_from_geometry, _multipoints_is_degenerate, _points_and_lines_to_multipoints, _zero_series
label_desc: Use image node_id 5 for calling a global function with example usage: _basic_intersects_count(lhs, rhs) and returns: sizes, _zero_series