You changed the batteries - good, but don't jump straight to thinking you need to replace the igniter itself. Before calling a repair person, check the basics: clean the electrodes of oxidation and carbon buildup. Over time, dirt accumulates on the tips, which weakens the spark. Take some fine sandpaper or a soft brush and carefully wipe both ignition contacts (the tip of the needle and the metal part of the burner) - often that's enough. Also check that the burner itself isn't dirty and that the gas holes aren't clogged.
If it still takes 2-3 attempts after cleaning, then it's most likely the ignition electrode itself - it may produce a weak spark or the spark forms incorrectly. This isn't necessarily a breakdown: sometimes it helps to reposition the batteries so the contacts press together more tightly, or make sure the batteries are actually fresh (old ones lose voltage without you noticing). Also try turning the ignition knob not just back and forth, but with a slight pause - sometimes the system needs a moment to fire.
If none of that works, then yes, it's wear on the ignition electrode or a faulty button. On these stoves, that's usually not an expensive repair, and parts are sold separately. But honestly, clean the contacts first - for a lot of people that's what solves the problem.