The number of guitar lessons you need will depend on your individual goals, current skill level, and how much time and effort you are willing to put into practicing outside of lessons.
If you are a complete beginner, it is recommended that you take at least several weeks of regular lessons to establish a solid foundation. By doing so, you can ensure that you develop good habits and avoid common mistakes that could hamper your progress down the road.
As you become more experienced, you may need fewer lessons, since you may only require guidance in specific areas such as advanced techniques, music theory, and songwriting.
In the end, having a clear understanding of your goals and discussing them with your guitar teacher is the best approach. Together, you can develop a lesson plan that is tailored to your specific needs and timeline.