Edit This Code:
See Result »
Click the button to display the number of images in the document.
Try it
Result: