I've been told that I need to get a loan on my credit report to increase my credit score. I've never gotten any type of loan before.
If I get a car lease, does that count as a loan for increasing my credit score?
For all intents and purposes, a lease affects your credit score in a similar manner as a loan.
In fact, a lease often requires slightly better credit in order to get the best terms, compared to a loan.
Alternative answer to your question: research proven ways to improve your credit score. A car loan may not be the answer.
Sources:
Does Leasing a Vehicle Affect the Credit Score the Same as Purchasing a Car?