Use “Wie viele …?” to ask for a count. In an A2 exam task, use it to request the number of people or things.