The clearest way is to balance the reaction using the half-reaction method, and showing that 8 electrons are involved. One easy, intuitive way is to see that there are 4 oxygen atoms in the reaction. Their initial oxidation state is 0, and their final oxidation state is -2, thus 4 * 2 = 8 electrons must have been transferred to oxygen.