Obtains the total number of characters either input from or output to the open text stream Stream and unifies it with Count.
stream_object, must be ground
A valid open text stream
The resulting character count of the stream
A freshly opened text stream has a character count of 0. When a character is input from or output to a non-interactive Prolog stream, the character count of the Prolog stream is increased by one. Character count for an interactive stream reflects the total character input from or output to any interactive stream, i.e. all interactive streams share the same counter.
nl/[0,1] operation also increases the character count of a
stream by one.
The count is reset by
Stream errors (see ref-iou-sfh-est).