The prince said 'Go bury the dead, and let his creditors come to my lodging, and there their debts shall be paid.' They came, in such great numbers that before night he had only twopence left for himself.
This is from English fairy tales. I can't understand the meaning of "that". Does this "that" mean "their debts"? If so, I wonder it needs "of" like "in such great numbers of that". Or is it other meaning?