Hi Elena, both sentences work just fine! In my opinion, "How many students are there in Paul's class?" feels more formal, and I would use this in writing, whereas "How many students are in Paul's class?" feels more conversational, which is what I would say to a friend, if I were speaking to her face-to-face.