'The' is critical because 'the amount of loans' is not good grammar. 'Loans' is countable and 'amount' modifies uncountables. What I presume you mean is the monetary total of the loan amounts, but 'the number (NOT 'amount') of loans' means 3 loans or 4 loans, for instance.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.