If the area code number order does not matter you can try this:
Calculate the number of similar "REGION" features with count(expression, group_by, filter)
Order the shapefile according to "REGION". Its possible to do by MMQGIS plugin "sort-tool"
Make unique "id" for all areas in field calculator with @rownumber@row_number
Count numbers for areas in field calculator
"id" % "counted_areas" +1