Jerky Engine

I have a 2004 Hyundai Santa Fe with 45k miles. Maybe one out of every ten times when the car is started and initially put into drive and you step on the gas it feels like it begins to go and then cuts out and then goes and then cuts out. It will do it three times in a row then run fine, and if you step on the brakes to interrupt the behavior it will subsequently run fine. Any idea what this might be?