هُوَ is a pronoun referring back to a known referent.
كَمْ asks for a number or expresses abundance.
كَيْتَ وَذَيْتَ stand in for an unspecified utterance or event.
These expressions can all function as nouns in grammatical classification, but they do very different semantic and syntactic jobs.