How many swimming lessons do I need to learn how to swim?

I’m so excited to learn how to swim at 28. I’m using a program at LA fitness for 50$ per hr lesson, once a week.. I’m wondering if that’s really enough to learn :( ... I decided maybe I can do 3 classes per month and maybe practice on my own.