How many kam is predicative and is the direct object of the main verb ahlaknāhā ‘We have destroyed’ a city meaning its inhabitants have We destroyed have We willed its destruction! So Our might Our chastisement came upon it at night or while they slept at noon qā’ilūn al-qaylūla is a rest taken halfway during the day even if it does not involve sleep in other words sometimes it came upon it at night and sometimes it came during the day.
- 7:44
وَكَمْ مِنْ قَرْيَةٍ أَهْلَكْنَاهَا فَجَاءَهَا بَأْسُنَا بَيَاتًا أَوْ هُمْ قَائِلُونَ
Many a habitation have We laid low before: Our retribution came upon them in the night or in the midst of siesta at noon.
- common.revelation-Meccan
- common.hizb : 61