pagination – What is the right method to show the user progress of a dynamic questionnaire with a variable number of questions?

What are the best practices for showing the length and the stage of a questionnaire, where the length of the questionnaire changes and branches dynamically depending on the responses? I will create a quiz in which the user will see one question at a time. I want users to know how much time they have and how much they have their place in the process, but without misleading them. I do not want them to think that a single questionnaire could have 50 questions to answer. But to give a tangible figure, they might have to answer 7 questions or 15 questions could be asked based on their answers.