كَمْ asks about number or expresses a large amount.
كَذَا stands for an amount or statement left unspecified.
Added example: «كَمْ كِتَابًا قَرَأْتَ؟» — How many books did you read?
«عِنْدِي كَذَا كِتَابًا» leaves the exact quantity unspecified.
This is an added teaching example, not a quotation from the book.