You know the total number of frames. To get the current rendered frame, use the callback #post/pre render frame.
https://help.autodesk.com/view/MAXDEV/2024/ENU/?guid=GUID-E5BE0058-2216-4E0B-88AF-680CA58AAC73