There is no built-in counter. You can add it to your own ROM.
Note that the camera can be used to take still images or to record video or to display a camera preview, for example. for some kind of augmented reality game. The game can save preview frames in some format or not. In addition, advanced cameras can provide high-quality previews of 1080p.
When you plan to add a counter, consider whether you want to count the number of times the camera was opened, or the length of the camera in preview mode, or the number of processed preview frames.
source share