Populating galleries from directory.

Added code to count number of images for product gallery and display
them in gallery.php