Added support to specify a global file count limit as well as a global size limit.