A generalization of the cofiniteness problem in local cohomology modules