code: def get_n_header(f, header_char='"'):
      '''Get the nummber of header rows in a Little Leonardo data file
  
      Args
      ----
      f : file stream
          File handle for the file from which header rows will be read
      header_char: str
          Character array at beginning of each header line
  
      Returns
      -------
      n_header: int
          Number of header rows in Little Leonardo data file
      '''
  
      n_header = 0
      reading_headers = True
      while reading_headers:
          line = f.readline()
          if line.startswith(header_char):
              n_header += 1
          else:
              reading_headers = False
  
      return n_headef get_n_header(f, header_char='"'):
      '''Get the nummber of header rows in a Little Leonardo data file
  
      Args
      ----
      f : file stream
          File handle for the file from which header rows will be read
      header_char: str
          Character array at beginning of each header line
  
      Returns
      -------
      n_header: int
          Number of header rows in Little Leonardo data file
      '''
  
      n_header = 0
      reading_headers = True
      while reading_headers:
          line = f.readline()
          if line.startswith(header_char):
              n_header += 1
          else:
              reading_headers = False
  
      return n_header
docs: Get the nummber of header rows in a Little Leonardo data file
  
      Args
      ----
      f : file stream
          File handle for the file from which header rows will be read
      header_char: str
          Character array at beginning of each header line
  
      Returns
      -------
      n_header: int
          Number of header rows in Little Leonardo data file