public readonly property blockCount as Int
Returns the total number of structural blocks (paragraphs and tables) in the document.
print("Total blocks: " + String(doc.blockCount))