Clearing a check engine light?

How many times does it take turning the ignition on/off to reset the ECU? I got a CEL the other day and I think it's because the oil level was low.