neat counter that allows each digit to be in a different base, useful for enumerating cuts of lists of lists