19. In a magical country, there are only two types of people, type $\mathrm{A}$ people who only tell the truth, and type $\mathrm{B}$ people who only tell lies. One day, 2014 citizens of this country lined up, and each one said: “There are more type $\mathrm{B}$ people behind me than type $\mathrm{A}$ people in front of me.” Therefore, among these 2014 citizens, there are $\qquad$ type $\mathbf{A}$ people.
【Answer】1007
Analysis: The first person has 0 people of type $A$ in front of him;
If a person is of type $B$, then all the people behind him are of type $B$, which contradicts the fact that there are two types of people in this country; hence, the first person is of type $A$.
The last person has 0 people of type $B$ behind him; thus, what he says must be a lie, so the last person must be of type $B$. Now, we simultaneously remove the first and the last person, i.e., remove one person of type $A$ from the front and one person of type $B$ from the back,
which does not change the truthfulness of the statements made by the remaining people in the middle;
Following the same method, we can determine that the first person among the remaining people in the middle is of type $A$, and the last person is of type $B$; then we simultaneously remove the first and the last person, .....
In this way, we can conclude that the first half of the people are of type $A$, and the second half are of type $B$.
There are a total of $2014 \div 2=1007$ people