A generalization of the finiteness problem in local cohomology modules