Calculate frequency of automation trigger

I’m trying the create a sensor that calculates the image frame-per-second of an ESP32 Camera component.

This component has an on_image automation trigger. Initially I was looking at setting up a number template sensor with a hidden accumulator which I would periodically calculate the count difference over the time interval. But then I realised that this is the same functionality as a Pulse Meter sensor.

Is it possible to trigger Pulse Meter sensor off an automation trigger instead of a HW pin?