Add exception counting for puts