unexport npartitions, nsetpartiations: use length(partitions(...))