Correct any grammatical errors in the given text:
We thought the factories were good because they allowed a great amount of people to work there.
We thought the factories were good because they allowed a great number of people to work there.