Which data is used to determine credit score?

Number of loans, credit cards, and late payments are used to determine your credit score. In addition, how much open credit you have is also used.