print number of regions