If 0 of them are truth-tellers, then all of them must tell lies, so all of them must say something different than "0 of us are truth-tellers." Since 1 of them says this, this cannot be the truth, because then we would have a liar telling the truth.
If 6 of them are truth-tellers, then all 5 statements that we have would need to agree. They do not all agree, so it cannot be that 6 of them are truth-tellers.
If 5 of them are truth-tellers, then at least 4 of the 5 statements that we have would have to agree, but at maximum 2 of our 5 statements agree. So it cannot be that 5 of them are truth-tellers.
If 4 of them are truth-tellers, then at least 3 of our 5 statements would have to agree, but at maximum 2 of our 5 statements agree. So it cannot be that 4 of them are truth-tellers.
So this means the number of truth-tellers must be 1, 2 or 3.
We know that the nature of the 6th person's response is such that it allows the foreigner to deduce the number of persons. If there were 2 or more responses that the 6th person could give that would each allow the foreigner to deduce a unique answer, then we could not answer the question ourselves. So if there are 2 or more responses that the 6th person could give, then they all must lead to the same answer.
Let us find out what can be deduced from each response that the 6th person could give.
1. Let's say the 6th person answers "0 of us are truth-tellers." We already know 0 can't be the answer. The only other options are 1, 2 or 3. In this scenario, the number of truth-tellers cannot be 2, because there are not exactly 2 people saying "2 of us are truth-tellers." The number of truth-tellers cannot be 3 because there are not exactly 3 people saying "3 of us are truth-tellers." So the only option left is 1, and we find no contradiction; there is indeed exactly 1 person saying "1 of us is a truth-teller." So if the 6th person's response is "0 of us are truth-tellers," then we can deduce that there is exactly 1 truth-teller.
2. Let's say the 6th person answers "1 of us are truth-tellers." Then there would be 2 people saying "1 of us are truth-tellers." So there cannot be exactly 1 truth-teller, because then one of these 2 people would be a liar and he would be telling the truth, and liars cannot tell the truth. But there cannot be 2 truth-tellers in this scenario either, because there would not be 2 people saying "2 of us are truth-tellers," and there cannot be 3 truth-tellers, because there would not be 3 people saying "3 of us are truth-tellers." But this means that if the 6th person answers "1 of us is a truth-teller" then we have a paradox where no answer is correct. So the 6th person simply cannot respond "1 of us is a truth-teller."
3. Let's say the 6th person answers "2 of us are truth-tellers." Then there would be only 2 possibilities: 1 or 2, because there are not 3 people saying "3 of us are truth-tellers" so 3 is impossible. But there are exactly 2 people saying "2 of us are truth-tellers" and there is exactly 1 person saying "1 of us is a truth-teller". So the foreigner cannot decide. Since we are told that the foreigner CAN decide, the 6th person could not have responded "2 of us are truth-tellers."
4. Let's say the 6th person answers "3 of us are truth-tellers." Then the number of truth-tellers could not be 2, because there would not be exactly 2 people saying "2 of us are truth-tellers." But again, there would be exactly 1 person saying "1 of us is a truth-teller" and exactly 3 people saying "3 of us are truth-tellers." So if the 6th person responds "3 of us are truth-tellers," then the foreigner cannot decide. But we are told that the foreigner can decide. So this is not a possible response.
5. Let's say the 6th person answers "4 of us are truth-tellers." Then the number of truth-tellers cannot be 2 or 3 because there are not, respectively, exactly 2 or 3 people saying "2 of us are truth-tellers" or "3 of us are truth-tellers." So there must be exactly 1 truth-teller, because that is the only option that cannot be disproven.
6. If the 6th person answers "5 of us are truth-tellers" or "6 of us are truth-tellers" then we can use the same reasoning as in case 5 to prove that the only option we cannot disprove is there being exactly 1 truth-teller.
So in conclusion, the 6th person cannot respond "1 of us is a truth-teller" because that leads to no answer being correct. It cannot respond "(2 or 3) of us are truth-tellers" because that would lead to the foreigner being unable to decide the correct answer. It can respond "(0, 4, 5, or 6) of us are truth-tellers" and each of these answers allows the foreigner to conclude that there is exactly 1 truth-teller.