Once you remove the dipstick, wipe it down with a rag before putting it back in for an accurate reading. Pull it out again and see how far the oil comes up the dipstick.
Foaming occurs as a result of agitation in the crankcase with the continuous movement of the vehicle and the oil hitting the surfaces inside the engine.