def METHOD_NAME(counts, commits, merges):
    """
    Prints the global count in a table on the screen
    """
    titles = list(list(counts.values())[0].keys()) + ['Total', 'Commits', 'Merges']
    row_format = '{:>25}'
    row_format += "{:>10}" * (len(titles))
    n = 25 + 10 * len(titles)
    totals = {k:0 for k in titles}
    print('-'*n)
    print(row_format.format("Name", *titles))
    print('-'*n)
    for author, row in reversed(sorted(counts.items(), key=lambda item:sum(item[1].values()))):
        row['Total'] = sum(row.values())
        values = ['{:,}'.format(row[key]) for key in titles if key not in ('Commits', 'Merges')]
        c = commits.get(author, 0)
        m = merges.get(author, 0)
        values += [c, m]
        row['Commits'] = c
        row['Merges'] = m
        for key in titles:
            totals[key] += row[key]
        print(row_format.format(author, *values))
    print('-'*n)
    print(row_format.format('TOTAL', *['{:,}'.format(totals[key]) for key in titles]))