FWIW I'm with Cam on it's possibly a crank sensor. it may also be a maf sensor. Maf is the million dollar, clean it first if the problem persists sensor.