class_docstr: Custom splitter. todo: write docstring.
  
  todo: describe your custom splitter here
  
  Parameters
  ----------
  parama : int
      descriptive explanation of parama
  paramb : string, optional (default='default')
      descriptive explanation of paramb
  paramc : boolean, optional (default= whether paramb is not the default)
      descriptive explanation of paramc
  and so on
  est : sktime.estimator, BaseEstimator descendant
      descriptive explanation of est
  est2: another estimator
      descriptive explanation of est2
  and so on
docstr: Return the number of splits.
  
  Parameters
  ----------
  y : pd.Series or pd.Index, optional (default=None)
      Time series to split
  
  Returns
  -------
  n_splits : int
      The number of splits.
docstr_tok: ["Return","the","number","of","splits",".","Parameters","--","--","--","--","--","y",":","pd.Series","or","pd.Index",",","optional","(","default=None",")","Time","series","to","split","Returns","--","--","--","-","n_splits",":","int","The","number","of","splits","."]
code: def get_n_splits(self, y) -> int:
      """Return the number of splits.
  
      Parameters
      ----------
      y : pd.Series or pd.Index, optional (default=None)
          Time series to split
  
      Returns
      -------
      n_splits : int
          The number of splits.
      """
      return len(list(self.split(y)))
  
file_path: sktime/extension_templates/split.py
imports: from sktime.split.base import BaseSplitter
label_desc: Use image node_id 4 for calling the MySplitter obj's underlying member method code with example usage: obj.get_n_splits(y) and returns: len