Libcamerasrc equivalent of using fames=1 in libcamera

The following works for me, however would like to use libcamerasrc rather than libcamera-vid but it does not take frames=1 as an option.

libcamera-vid --camera 0 -t 0 --inline --width 640 --height 480 --framerate 30 --frames 1 -o - | GST_DEBUG=2 gst-launch-1.0 fdsrc ! udpsink host=10.0.0.103 port=5000

I have no experience with libcamerasrc, though the source elements of gstreamer would derive from GstBaseSrc, that has a member num-buffers (the doc link lacks a description). The source element would terminate after this number of buffers (images in your case), so you would just use:

gst-launch-1.0 -ev libcamerasrc num-buffers=1 ! ...