def METHOD_NAME(result, identifier, core):
    """Increases the number of times a reference with the same identifier has appeared"""
    if core:
        result[identifier] = (result[identifier][0] + 1, result[identifier][1])
    else:
        result[identifier] = (result[identifier][0], result[identifier][1] + 1)