"How many friends do you have?"
Translation:¿Cuántos amigos tienes?
BOSTON has universities. How many universities does BOSTON have? OR How many universities has BOSTON?
In all these sentences Boston is the subject of the verb (has / does have).
YOU have friends. How many friends do YOU have? OR How many friends have YOU?
In all these sentences you is the subject of the verb.
When you write ¿Cuántos tienen amigos? how many / cuántos I think now becomes the subject of the verb - it functions as a pronoun in both languages when it is used "stand-alone". How many (of them) have friends? All of them, I hope!😄 And also in this case the Spanish verb would be tienen.
As RyagonIV points out just above your comment cuántos can also be a quantitative adjective and in Spanish as a quantitative adjective it should immediately precede the noun that it applies to which is amigos in this case (or universidades in your other example). English works the same way - How many friends / Cuántos amigos; how many universities / cuántas universidades.
In questions that seek information in Spanish the subject of the verb is most often placed after it. English does this too, as in the questions in my examples at the very beginning. So referring to your example, BOSTON is equivalent to YOU, not to friends.
¿Cuántos amigos tiene usted? Or
¿Cuántos amigos tienes tú?
You can omit the SUBJECT pronouns in both cases - usted, tú. There are other possibilities too.
Tú tienes muchos amigos. "You have many friends." Muchos here is also used as a quantitative adjective in the same way as cuántos.
I can not continue the lessons when I come to the part when you have three sentence and you are to pick the one correct sentence and if the correct sentence is the top sentence it will not let you choose it. You can only select one of the other two that are the wrong answee and you can't continue on.
This question has been answered in this forum a number of times. See RyagonIV's post above for example
And please, you don't need to shout.