REVNUM()

Returns the number of times the document has been saved. This is taken directly from the Statistics page under the File/Properties menu.

See also:

Other document function