code: def ktotal(kind):
      
      kind = stypes.stringToCharP(kind)
      count = ctypes.c_int()
      libspice.ktotal_c(kind, ctypes.byref(count))
      return count.value
docs: Return the current number of kernels that have been loaded
      via the KEEPER interface that are of a specified type.
  
      http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/ktotal_c.html
  
      :param kind: A list of kinds of kernels to count.
      :type kind: str
      :return: The number of kernels of type kind.
      :rtype: int