The batter is not charged with a time at bat, but I don’t think he gets credit for anything for OBP purposes. Would assume it’s just reached on an error, no different than if a SS booted a grounder. Actually I don't think it counts as an AB or plate appearance.