def METHOD_NAME():
    repo = git.Repo(ROOT_DIR)
    highest_version = None
    for tag in repo.tags:
        match = re.match(r'^(\d+)\.(\d+)\.(\d+)$', str(tag))
        if (match is None):
            continue
        version = tuple(map(int, match.group(1, 2, 3)))
        if (highest_version is None or version > highest_version):
            highest_version = version
    highest_version = '.'.join(map(str, highest_version))
    commits = repo.git.log('--format=%H', "HEAD...%s" % (highest_version))
    return len(commits.splitlines())