am_pending_ops: Get the number of pending operations
Description
Returns the number of operations that have been applied to the document
but not yet committed. This is useful for determining whether a commit
is needed.
Usage
am_pending_ops(doc)
Value
An integer indicating the number of pending operations. Returns 0
if there are no uncommitted changes.