<? Php
$ num_files = count (glob ($ _ SERVER ['DOCUMENT_ROOT']. '/ images / *'));
echo $ num_files;
? >
use this code if you want to count the number of files in a folder.
rename images to the same prefix, i.e. image0, image1, etc.
nostra13,
https://github.com/nostra13/Android-Universal-Image-Loader
.