The answer isn't really about how many projects, but more about their quality. Your portfolio should showcase your skill and clearly demonstrate your strengths and abilities. Real-world projects are great because they show that you've worked with a client from start to finish. But if you don't have any real-world projects, focus on presenting projects that show the range of you knowledge and highlight your personality.