How to get current frame number in Replicator

Hi, I want to get the frame number, so I can create a sequence, not just randomized functions. I will post the example code below. You can run it in code script editor. The desired function would be the camera moving in a circle around the cube, looking at it. How can I achieve that functionality?

import omni.replicator.core as rep
import numpy as np
with rep.new_layer():
    camera = rep.create.camera(position=(0, 0, 1000))
    render_product = rep.create.render_product(camera, (1024, 1024))
    cube = rep.create.cube(semantics=[('class', 'cube')],  position=(0, 0 , 0) )

    azimuth=0
    elevation = np.radians(45)
    distance=500
    origin=(0, 0, 0)
    frame = 0

    with rep.trigger.on_frame(num_frames=100):
        azimuth = frame * np.radians(3.6)
        frame += 1
        x = np.cos(azimuth) * np.cos(elevation) * distance
        y = np.sin(azimuth) * np.cos(elevation) * distance
        z = np.sin(elevation) * distance
        with camera:
            rep.modify.pose(position=(x, y, z), look_at=origin)