Finiteness of rank invariants of multidimensional persistent homology groups