One
possible way is to run the following command:
Just to be thorough, that's a one (1) for the option to ls.
That will count how many
things are in a directory. "Things" includes regular files and directories. If there are directories mixed with the images, I would suggest reading up on the find command (
man find) with specific attention to the "-type" and "-maxdepth" options.