It is nodes, so every nt:unstructed is considered node.
If you install a large package in AEM, ul see saving approx 1024 nodes... So in AEM standard is 1024 node changes and then save.
You need to keep track of number of nodes your code creates/change, and check if changes > 1024 you then can do session.save().