Source: https://www.irem.univ-bpclermont.fr/IMG/pdf/Cou_t_marginal.pdf