On the computation of degrees-of-freedom: a didactic perspective