I know viel is declined when used as an adjective. My textbook says the word viel in the combination wie viel (how much/how many) takes no declension, but then it gives the following examples:
Wie viele Leute sitzen draußen?
Für wie viele Personen?
which seem a contradiction because an -e has been added for the plural.
What am I not getting?