import re


def parse_output_areas(msg):
    """Parse create area message and return area number"""
    res = re.search(r"(OUTPUT AREAS =\s*)([0-9]+)", msg)
    if res is not None:
        return int(res.group(2))