Actually, it does. When , in portuguese, we use "quantos" we are saying that the subject is male. For female, we use the word "quantas". Therefore, the correct answer would be with "ils". I think Duo has made a mistake in this case, 'cause it has already happened in this lesson.