def count_hex(string, success):
    """
    Parser function that modifies the output of the 'count-hex' command.
    This transforms the number into a hexadecimal one. In actuality,
    this is an example of how to use transformer functions for Git output.
    """
    if success is not True:
        return string
    return format(int(string), 'x')
