Kam here is exclamatory or declarative in force—‘how many nights!’—rather than a question requesting a number. Min laylatin specifies the counted category. This conveys the abundance of the poet’s experiences.
Ṭalqin ladhīdhin describes the night, and the feminine suffixes in lahwuhā wa-nidāmuhā refer back to it. The syntax presents both frequency and felt quality.