Generalized electron number distribution functions: real space versus orbital space descriptions