Updated to output region count.