I want to count the total number of images using java. Please help me to find this with code.