This is the 2357th most frequent Portuguese word.
quantas
"Quantas" means "how many" (feminine, plural).
Here, 'quantas' is used to inquire about an indefinite quantity, matching the plural feminine noun 'maçãs'.
Quantas maçãs você quer comprar?
How many apples do you want to buy?
In this sentence, 'quantas' serves to ask about occurrences, referring to the plural feminine noun 'vezes'.
Quantas vezes você já viajou para o Brasil?
How many times have you traveled to Brazil?
The usage of 'quantas' here questions the number of people, targeting the plural feminine noun 'garotas'.